Security context

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

horejsek/python-fastjsonschema
master @ 8f5c02e
3
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Code Injection: 2 prior fixes. Scrutinize any change in this area.
fastjsonschema/draft04.py: most-fixed (2 issues). 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.

Code Injection: Schema definitions containing unescaped characters or unexpected data types (e.g., in patterns, minLength, enum, or maximum) can inject arbitrary Python code into the dynamically compiled validation functions, leading to Remote Code Execution (RCE).
Auth Bypass: Using permissive regex end anchors like '$' instead of '\Z' allows malicious payloads containing trailing newlines to bypass format validation checks.