Security context

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

willdurand/jsonpcallbackvalidator
master @ 52e813d
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Reflected XSS: 2 prior fixes. Scrutinize any change in this area.
JsonpCallbackValidator: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Reflected XSS: A regex bypass allowed malformed callback parameters containing unescaped quotes to pass validation, leading to Reflected XSS. Future modifications to the regex must not re-introduce permissive matches for quoted identifiers.
Reflected XSS: Missing explicit string-type checks allowed non-string inputs (type-juggling or arrays) to cause application crashes or bypass regex validation steps entirely.