- Severity: MEDIUM
- CVE: CVE-2026-122053
- Ecosystems: composer, composer, composer, composer, composer, composer, composer, composer, composer, composer
- Packages: symfony/serializer, symfony/serializer, symfony/serializer, symfony/serializer, symfony/serializer, symfony/symfony, symfony/symfony, symfony/symfony, symfony/symfony, symfony/symfony
### Description
`ObjectNormalizer::isAllowedAttribute()` treats any attribute name containing `.` (and, from 6.4, `[`) as writable, and `setAttributeValue()` hands the name straight to `PropertyAccessor::setValue()`, which parses it as a property path and traverses into the nested object.
A payload key such as `customer.admin` therefore writes to `$order->customer->admin`, bypassing the `#[Ignore]` metadata of the nested class. That metadata is only consulted when the nested object is denormalized in its own right, never when it is reached through a path. `#[Groups]` restrictions are not bypassed: the path is only accepted when no groups are passed in the context, and then groups restrict nothing.
No allowlist stands in the way. When the root class carries no `#[Ignore]` and no `#[Groups]`, `AbstractNormalizer::getAllowedAttributes()` returns `false` and every key in the payload is let through:
“`json
{“customer”: {“name”: “Mallory”}, “qty”: 1, “customer.admin”: true}
“`
The first key denormalizes `customer` normally, honouring `#[Ignore]` on `admin`. The third key takes the path fast lane and sets `admin` anyway.
Applications that bind untrusted input to objects are affected, including controllers using `#[MapRequestPayload]` or `#[MapQueryString]`, whose default normalizer is `ObjectNormalizer`. With `OBJECT_TO_POPULATE`, as used for partial updates, the traversal reaches an already hydrated entity graph and the modified field may be persisted.
Because `PropertyAcc…
Source: GitHub Security Advisories · 2026-12-01