Security context

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

google/libphonenumber
master @ 4ad67e9
2
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Memory Corruption: 1 prior fix. Scrutinize any change in this area.
cpp/src/phonenumbers/asyoutypeformatter.cc: most-fixed (1 issue). 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.

Memory Corruption: Raw Unicode characters appended to an internal buffer can corrupt memory, leading to crashes or potential code execution. The fix normalizes digits before append, but other append sites in the formatter may still mishandle non-ASCII input.
Reflected XSS: User-controlled input echoed into HTML without escaping allows script injection. The fix adds escapeHtml, but other servlets or response-writing paths may still lack escaping.