Security context

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

qix-/color-string
master @ 247fb2c
2
Fixes
1
CVEs
MEDIUM
Peak severity
Highlights
Prototype Pollution: 2 prior fixes. Scrutinize any change in this area.
index.js: most-fixed (2 issues). Treat as high-risk during review.
0 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: Attackers can exploit arbitrary property resolution or prototype pollution when parsing user-controlled color names or keywords if the lookup maps are not properly restricted or initialized with null prototypes.
Regular Expression Denial of Service (ReDoS): Processing crafted, invalid color format strings (such as HWB strings) can lead to catastrophic backtracking in regular expressions, causing application denial of service.