Security context

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

facebook/react
main @ 99e8606
41
Fixes
6
CVEs
CRITICAL
Peak severity
31.3%
Coverage
Highlights
Cross-Site Scripting (XSS): 10 prior fixes. Scrutinize any change in this area.
react-dom: most-fixed (5 issues). Treat as high-risk during review.
26 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.

Cross-Site Scripting (XSS): Historically, react-dom and react-dom-bindings have been vulnerable to XSS through unescaped style/script outputs, inadequate sanitization of 'javascript:' URLs, and attribute name injection during server-side rendering (e.g., CVE-2018-6341).
Insecure Deserialization: React Server Components (and the Flight protocol) are prime targets for deserialization attacks, leading to critical remote code execution (RCE) and denial of service (DoS) vulnerabilities as seen in several recent CVEs.
Prototype Pollution: The processing and hydration of server-to-client payloads in the Flight client/server serialization layers have historically allowed attackers to pollute object prototypes via unsafe property lookup and hydration keys.