Junglewise Threat Intelligence

CVE-2026-54164: API Platform Core type confusion in AbstractItemNormalizer

CVE-2026-54164 · Severity: medium · CVSS 6.5 · Published 2026-07-01

Executive brief

API Platform Core, a framework for building web APIs, contains a vulnerability where it fails to verify if a linked data object is of the correct type during data updates. An attacker with basic account access can exploit this to link unrelated data types together, potentially bypassing business logic or corrupting the application's data integrity. This could lead to unexpected application behavior or the corruption of records that rely on specific data relationships.

Technical details

A type confusion vulnerability exists in API Platform Core's 'AbstractItemNormalizer' due to missing type validation when resolving Internationalized Resource Identifiers (IRIs) for relations. When processing write requests (POST/PUT/PATCH), the 'getResourceFromIri()' method fails to pass an operation context to the 'IriConverter', causing it to skip 'is_a' type guards. For legacy untyped properties (using @var annotations), this allows an attacker to assign an object of an incorrect class to a relation, leading to CWE-843. While modern PHP 8.x typed properties are partially protected by Symfony's PropertyAccessor, the vulnerability still affects untyped properties and collections of mixed-type interfaces. Patches are available in versions 4.1.30, 4.2.26, and 4.3.12.

Affected products

  • api-platform core < 4.1.30, >= 4.2.0 < 4.2.26, >= 4.3.0 < 4.3.12

Timeline

  • 2026-06-13: disclosed
  • 2026-07-01: advisory: NVD publication date
  • 2026-08-07: patched: GitHub Advisory reviewed and updated

References