Security context

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

schmittjoh/serializer
master @ 43bd8f4
7
Fixes
0
CVEs
HIGH
Peak severity
Highlights
XML External Entity (XXE): 4 prior fixes. Scrutinize any change in this area.
Serializer/XmlDeserializationVisitor.php: most-fixed (3 issues). Treat as high-risk during review.
6 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.

XML External Entity (XXE): Attackers can exploit XML parsing logic to achieve arbitrary file disclosure or SSRF. Historically, validation rules around DOCTYPE declarations were bypassed due to premature parsing or environment-specific bugs (such as PHP core bugs affecting DOMDocumentType::$internalSubset and Windows line-ending differences).
Auth Bypass: During deserialization, if a Doctrine entity lacks exposed identifier fields, the constructor logic can be tricked into fetching arbitrary records directly from the database instead of constructing a new object, bypassing standard application access controls.
Auth Bypass: Custom serialization handlers could process read-only properties without checking their read-only state, potentially allowing unauthorized modifications to immutable fields.