api-platform/core is vulnerable to Improper Authorization
75
High Risk
AbstractItemNormalizer short-circuited security handling when resource_class was not considered a resource class: canAccessAttribute() returned true without evaluating ApiProperty security / policy, and the post-denormalize path returned early before reverting disallowed attributes for those types. Input DTOs legitimately use non-resource classes, so ApiProperty security expressions on input DTO properties were skipped. The fix removes those isResourceClass guards where they blocked required checks, evaluates property metadata (with PropertyNotFoundException ignored for attributes absent from the resource metadata chain), and keeps post-denormalize enforcement aligned with input DTOs.
You are affected if you are using a version that falls within the vulnerable range.
api-platform/core is vulnerable to Improper Authorization in versions 4.3.0 - 4.3.0 and 4.2.0 - 4.2.21.
Upgrade the api-platform/core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant