Quick answers
- Is CVE-2026-54164 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-54164 being exploited in the wild.
- How severe is CVE-2026-54164?
- Medium severity, with a CVSS score of 6.5, published 1 July 2026.
- Which products and versions are affected?
- api-platform/core (Packagist) ECOSYSTEM:introduced=0,fixed=4.1.30.
- Is there a fix for CVE-2026-54164?
- Yes. api-platform/core (Packagist): upgrade to 4.1.30 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-54164 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-54164?
- Check whether you run api-platform/core (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- api-platform/core (Packagist): upgrade to 4.1.30 or later
composer require api-platform/core:^4.1.30
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
Identifiers
- CVE-2026-54164
- GHSA-9rjg-x2p2-h68h
Timeline
- 2026-06-13: disclosed
- 2026-07-01: advisory: NVD publication date
- 2026-08-07: patched: GitHub Advisory reviewed and updated
References
- https://api.github.com/users/alexandre-daubois
- https://github.com/alexandre-daubois
- https://api.github.com/users/alexandre-daubois/gists%7B/gist_id%7D
- https://api.github.com/users/alexandre-daubois/repos
- https://avatars.githubusercontent.com/u/2144837?v=4
- https://api.github.com/users/alexandre-daubois/events%7B/privacy%7D