Skip to content

Commit a65ab14

Browse files
committed
Update async-graphql and limit directives
Fix the security advisory for async-graphlq: CVE-2024-47614
1 parent 7e90170 commit a65ab14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ license = "Apache-2.0"
88
unwrap_used = "deny"
99

1010
[dependencies]
11-
async-graphql = { version = "=7.0.9", features = ["tracing"] }
12-
async-graphql-axum = "=7.0.9"
11+
async-graphql = { version = "7.0.11", features = ["tracing"] }
12+
async-graphql-axum = "7.0.11"
1313
axum = "0.7.5"
1414
chrono = "0.4.38"
1515
clap = { version = "4.5.16", features = ["cargo", "derive", "env"] }

src/graphql.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub async fn serve_graphql(db: &Path, opts: ServeOptions) {
5252
info!("Serving graphql endpoints on {:?}", opts.addr());
5353
let schema = Schema::build(Query, Mutation, EmptySubscription)
5454
.extension(Tracing)
55+
.limit_directives(32)
5556
.data(db)
5657
.finish();
5758
let app = Router::new()

0 commit comments

Comments
 (0)