CVE-2026-54164: CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') in api-platform core
API Platform Core versions prior to 4.1.30, 4.2.26, and 4.3.12 contain a type confusion vulnerability in the serializer's AbstractItemNormalizer. This flaw allows an attacker with write access to supply a relation IRI pointing to a resource of an unintended type, bypassing type validation for untyped relation properties. Typed properties in PHP 8.x are protected by Symfony's PropertyAccessor, which blocks the substitution. The issue has been fixed in versions 4.1.30, 4.2.26, and 4.3.12.
AI Analysis
Technical Summary
The vulnerability (CWE-843) in API Platform Core affects the AbstractItemNormalizer serializer component. When resolving relation IRIs, the resource type returned is not validated if the getResourceFromIri() method does not pass an $operation parameter to IriConverter::getResourceFromIri(), causing the is_a type guard to be skipped. This allows an attacker who can submit write requests (POST/PUT/PATCH) to supply a relation IRI referencing a resource of a different type than declared, leading to silent assignment of the wrong-typed object for untyped relation properties. This corrupts data invariants and may impact downstream logic relying on declared types. Typed properties in PHP 8.x are protected by an exception from Symfony's PropertyAccessor. The vulnerability is fixed in versions 4.1.30, 4.2.26, and 4.3.12.
Potential Impact
The vulnerability can lead to integrity issues where relation properties are assigned resources of incorrect types, potentially causing application logic errors or data corruption. There is no direct confidentiality or availability impact reported. Exploitation requires the ability to submit write requests to API Platform endpoints with writable relations. Typed properties in PHP 8.x prevent exploitation by throwing exceptions, limiting impact to untyped legacy properties.
Mitigation Recommendations
This vulnerability is fixed in API Platform Core versions 4.1.30, 4.2.26, and 4.3.12. Users should upgrade to these or later versions to remediate the issue. No temporary or alternative mitigations are specified. Since this is not a cloud service, remediation depends on applying the official fixes.
CVE-2026-54164: CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') in api-platform core
Description
API Platform Core versions prior to 4.1.30, 4.2.26, and 4.3.12 contain a type confusion vulnerability in the serializer's AbstractItemNormalizer. This flaw allows an attacker with write access to supply a relation IRI pointing to a resource of an unintended type, bypassing type validation for untyped relation properties. Typed properties in PHP 8.x are protected by Symfony's PropertyAccessor, which blocks the substitution. The issue has been fixed in versions 4.1.30, 4.2.26, and 4.3.12.
CVSS v3.1
Score 6.5medium
Affected software
pkg:github/api-platform/coreRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CWE-843) in API Platform Core affects the AbstractItemNormalizer serializer component. When resolving relation IRIs, the resource type returned is not validated if the getResourceFromIri() method does not pass an $operation parameter to IriConverter::getResourceFromIri(), causing the is_a type guard to be skipped. This allows an attacker who can submit write requests (POST/PUT/PATCH) to supply a relation IRI referencing a resource of a different type than declared, leading to silent assignment of the wrong-typed object for untyped relation properties. This corrupts data invariants and may impact downstream logic relying on declared types. Typed properties in PHP 8.x are protected by an exception from Symfony's PropertyAccessor. The vulnerability is fixed in versions 4.1.30, 4.2.26, and 4.3.12.
Potential Impact
The vulnerability can lead to integrity issues where relation properties are assigned resources of incorrect types, potentially causing application logic errors or data corruption. There is no direct confidentiality or availability impact reported. Exploitation requires the ability to submit write requests to API Platform endpoints with writable relations. Typed properties in PHP 8.x prevent exploitation by throwing exceptions, limiting impact to untyped legacy properties.
Mitigation Recommendations
This vulnerability is fixed in API Platform Core versions 4.1.30, 4.2.26, and 4.3.12. Users should upgrade to these or later versions to remediate the issue. No temporary or alternative mitigations are specified. Since this is not a cloud service, remediation depends on applying the official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T21:46:52.380Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a456fd127e9c79719097e66
Added to database: 07/01/2026, 19:51:45 UTC
Last enriched: 07/01/2026, 21:20:13 UTC
Last updated: 07/01/2026, 21:20:13 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.