Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

graphql/express-graphql
main @ 3fab4b1
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Reflected XSS: 2 prior fixes. Scrutinize any change in this area.
src/renderGraphiQL.js: most-fixed (2 issues). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Reflected XSS: Unescaped user-supplied variables passed to GraphiQL can escape the script block context, leading to browser exploitation. This was mitigated by sanitizing JSON-serialized variables.
Reflected XSS: Injecting raw query and result strings into inline script blocks allowed script tag termination and injection. A custom serializer was introduced to safely encode strings.