Security context

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

beautifier/js-beautify
main @ 4f52c49
2
Fixes
0
CVEs
MEDIUM
Peak severity
50.0%
Coverage
Highlights
ReDoS: 2 prior fixes. Scrutinize any change in this area.
python/jsbeautifier/javascript/tokenizer.py: 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.

ReDoS: Two fixes targeted the Python tokenizer's XML regex, indicating a recurring weakness in this component. The regex with nested quantifiers allows exponential backtracking on crafted XML-like input, leading to CPU exhaustion.
ReDoS: The JavaScript tokenizer shares the same XML regex pattern and was fixed in the same commit as the Python version. This indicates the vulnerability is cross-language and requires parallel patching to avoid divergence.