CVE-2026-54164
API Platform Core: Missing IRI type check enables resource type confusion
Also known as GHSA-9rjg-x2p2-h68h
Mitigation
- Upgrade api-platform/core to one of 4.1.30, 4.2.26, 4.3.12 (or later in the same release line).
Who should check
- Projects that depend on Packagist package api-platform/core (< 4.1.30)
- Anyone running api-platform core < 4.1.30; >= 4.2.0, < 4.2.26; >= 4.3.0, < 4.3.12
Vulnerability facts
- Affected
- api-platform/core < 4.1.30
- Fixed in
- 4.1.30, 4.2.26, 4.3.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 19, 2026-11-26)
- CWE
- CWE-843
- Modified
Description
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. In versions prior to 4.1.30, 4.2.26 and 4.3.12, the serializer's AbstractItemNormalizer does not validate the resource type returned when resolving relation IRIs, allowing type confusion where a resource of an unintended type can be silently assigned to a relation property. An attacker who can submit write requests (POST/PUT/PATCH) to an API Platform endpoint with writable relations can supply a relation IRI pointing to a resource of a different type than the relation's declared class. Because getResourceFromIri() does not pass an $operation to IriConverter::getResourceFromIri(), the is_a type guard at IriConverter.php:86 is skipped. For untyped relation properties (legacy @var-only style), the wrong-typed object is silently assigned, corrupting invariants and potentially feeding downstream logic that assumes the declared type (CWE-843). For typed properties (modern PHP 8.x), the substitution is blocked by Symfony's PropertyAccessor with an InvalidTypeException. This issue has been fixed in versions 4.1.30, 4.2.26 and 4.3.12.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist api-platform/core | < 4.1.30 | 4.1.30, 4.2.26, 4.3.12 | osv |
| api-platform core | < 4.1.30; >= 4.2.0, < 4.2.26; >= 4.3.0, < 4.3.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-54164. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-54164.md Affected: api-platform/core < 4.1.30 Fixed in: 4.1.30, 4.2.26, 4.3.12 Steps: 1. Search this machine and project for api-platform/core (Packagist), api-platform core: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-54164 being exploited?
There is no confirmed exploitation: CVE-2026-54164 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-54164?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-54164?
api-platform/core < 4.1.30.
Is there a fix for CVE-2026-54164?
Yes. Fixed in 4.1.30, 4.2.26, 4.3.12. Upgrade api-platform/core to one of 4.1.30, 4.2.26, 4.3.12 (or later in the same release line).
How do I check if I'm affected by CVE-2026-54164?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.