CVE-2026-133752: Symfony Serializer Ignores Blocks

Symfony has fixed a flaw in its Serializer that could let attacker-controlled data set fields an application had deliberately marked off-limits. Tracked as CVE-2026-133752 and scored 6.3 under CVSS 4.0, the bug affects the ObjectNormalizer, PropertyNormalizer and GetSetMethodNormalizer, and the fix is in Symfony Serializer versions 5.4.57, 6.4.51, 7.4.24 and 8.1.12.
When the Serializer turns incoming data into an object, a process called denormalization, it works out which attributes it is allowed to write from the #[Ignore] and #[Groups] metadata on the class. The problem was that it made that calculation for the class that was requested, but then wrote into a different class in two situations. The first is when a discriminator map in the data picks a different class from the one requested. The second is when the caller passes an existing object through the object_to_populate or deep_object_to_populate option. If the requested class had no #[Ignore] attribute and the context set no groups, nothing was restricted at all, so a client could set a property that the class actually written into marks with #[Ignore], including constructor arguments.
Symfony's advisory gives a concrete example. With a #[MapRequestPayload] Notification $notification argument, the payload {"kind":"email","skipModeration":true} set skipModeration on the email notification class, even though that property carries #[Ignore]. The same kind of escape happened with groups: a property outside the groups in the context could still be set when another class in the map had a property with the same name inside one of the groups. The same failure occurred with #[Ignore] when the requested class itself declares the map. On Symfony 5.4, ObjectNormalizer also returned such properties when normalizing an object whose class declares the map itself.
Who is affected
The flaw affects Symfony Serializer versions from 5.1 up to but not including 5.4.57, from 6.0 up to but not including 6.4.51, from 7.0 up to but not including 7.4.24, and from 8.0 up to but not including 8.1.12. Applications are exposed when they denormalize untrusted data into classes that use discriminator maps or object_to_populate, and rely on #[Ignore] or #[Groups] to keep sensitive fields out of reach. No public exploit code has been observed, and the flaw does not appear in CISA's Known Exploited Vulnerabilities catalogue.
What the fix changes
The Serializer now resolves the class it is actually writing into first, and computes the allowed attributes for that class, rather than for the class that was requested. The type property of a discriminator map is also written only when the metadata of that class allows it. The issue was reported by Jack Worman, who also provided the fix, and independently by Amimul Ihsan.
What to do now
Upgrade to Symfony Serializer 5.4.57, 6.4.51, 7.4.24 or 8.1.12. Teams should also review endpoints that accept request payloads into mapped objects, especially any that use #[MapRequestPayload] with a discriminator map, and check whether fields such as moderation flags, roles or internal status values could have been set by a caller. Any unexpected values found in those fields should be treated as a sign the flaw was reached before the patch landed.