Security context

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

douglascrockford/json-java
master @ c91d821
1
Fixes
3
CVEs
HIGH
Peak severity
Highlights
Cookie Injection: 1 prior fix. Scrutinize any change in this area.
org.json.Cookie: most-fixed (1 issue). 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.

Denial of Service (DoS): Recursive or deeply nested input structures processed by JSONTokener can lead to stack overflow exceptions or excessive memory allocation, causing application crashes. This represents a severe risk for applications accepting untrusted payloads.
Cookie Injection: Inadequate serialization encoding in the Cookie.toString output generator historically permitted attackers to inject malicious cookie attributes. Ensuring keys and values are aggressively validated and encoded before appending prevents session manipulation and attribute overrides.