Security context

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

urql-graphql/urql
main @ d510a9a
2
Fixes
1
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Prototype Pollution: 1 prior fix. Scrutinize any change in this area.
packages/next-urql/src/DataHydrationContext.ts: most-fixed (1 issue). Treat as high-risk during review.
2 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: Improperly escaped HTML/script tags in the stringified JSON payload during server-side hydration allows execution of malicious scripts (CVE-2024-24556). Developers must ensure that serialization contexts encode characters like '<' and '>' to prevent execution in client-side HTML contexts.
Prototype Pollution: Recursive merging of AST variables can lead to Prototype Pollution if object properties like '__proto__', 'constructor', or 'prototype' are not explicitly blocked during input resolution.