Security context

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

cheeriojs/cheerio
main @ 24780fb
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Cross-Site Scripting (XSS): 1 prior fix. Scrutinize any change in this area.
lib/api/manipulation.js: 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.

Cross-Site Scripting (XSS): Inadequate encoding of special HTML entities when manipulating element attributes or text values through standard APIs like .attr() and .text() can allow malicious scripts to be injected and executed in the context of the parsed document.
Prototype Pollution: Reliance on vulnerable utility dependencies (such as lodash) can expose the library to prototype pollution vectors, potentially leading to denial of service or remote code execution if internal object Merging or cloning is manipulated.