Security context

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

google/gson
main @ e4f54f7
3
Fixes
1
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
Cross-Site Request Forgery: 1 prior fix. Scrutinize any change in this area.
gson: 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.

Other: Internal type implementation classes implemented the Serializable interface, exposing writeReplace() methods that enabled the deserialization of untrusted data and potential gadget chain exploits.
Cross-Site Request Forgery: Standard JSON outputs can be vulnerable to JSON hijacking (a variation of CSRF) when parsed as scripts. A prefix mechanism is required to prevent the browser from executing the JSON payload directly.
Data Validation: Parsing numeric fields using standard Java parsers without strict ASCII digit validation can lead to unexpected handling of Unicode digits, potentially leading to validation bypasses in downstream application logic.