Security context

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

yahoo/serialize-javascript
main @ 153eb43
7
Fixes
2
CVEs
HIGH
Peak severity
Highlights
Cross-Site Scripting (XSS): 3 prior fixes. Scrutinize any change in this area.
index.js: most-fixed (7 issues). Treat as high-risk during review.
6 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.

Code Injection: Attackers can bypass the string-escaping logic by passing spoofed URL or RegExp objects that return unexpected non-string values or contain malicious executable flags, leading to arbitrary code execution upon evaluation.
Cross-Site Scripting (XSS): Improperly sanitized functions, regex literals, or URLs printed directly using `.toString()` or unescaped placeholders can be manipulated to inject closing HTML script tags or bypass standard sanitizers.