Security context

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

inikulin/parse5
master @ eb06974
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Prototype Pollution: 1 prior fix. Scrutinize any change in this area.
lib/common: 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.

Prototype Pollution: Using standard JavaScript objects for internal parser lookup tables allowed attackers to pollute the global Object prototype, which can alter parser logic or cause denial of service. Secure parsers must consistently use null-prototype objects for untrusted map lookups.
Reflected XSS: Custom escaping logic in the HTML rewriting stream failed to properly sanitize special characters, leading to potential Reflected XSS. Standardized, robust encoding routines should always be used over ad-hoc escaping implementations.