You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
graphql: Missing query complexity and alias bounds on repos field #428
POST /graphql accepts anonymous queries without depth, alias, or complexity limits (crates/gitlawb-node/src/graphql/mod.rs:79-88). Each aliased repos root field executes two unpaginated database queries (crates/gitlawb-node/src/graphql/query.rs:12-45).
Impact
One request with many aliased root fields multiplies database queries and heap allocations.
Remediation
Enforce query complexity and alias limits before execution.
PR #408 implements this (document complexity cap, depth limit, per-root cost so aliases consume the budget). It predates this issue; linking here so the merge can close it.
Activity
beardthelion commentedon Sep 10, 2026
PR #408 implements this (document complexity cap, depth limit, per-root cost so aliases consume the budget). It predates this issue; linking here so the merge can close it.
fix(db): deny malformed reader lists without failing repo pages
fix(graphql): reject NUL bytes in repository cursors