CVE-2026-54164
API Platform Core: Missing IRI type check enables resource type confusion
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.
INFO
Published Date :
July 1, 2026, 8:17 p.m.
Last Modified :
Oct. 25, 2026, 4:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update API Platform Core to version 4.1.30 or later.
- Update API Platform Core to version 4.2.26 or later.
- Update API Platform Core to version 4.3.12 or later.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-54164.
| URL | Resource |
|---|---|
| https://github.com/api-platform/core/security/advisories/GHSA-9rjg-x2p2-h68h | |
| https://github.com/api-platform/core/security/advisories/GHSA-9rjg-x2p2-h68h |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-54164 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-54164
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-54164 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-54164 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 25, 2026
Action Type Old Value New Value Added Translation Title: core de api-platform, Description: API Platform Core es un sistema para crear API REST y GraphQL impulsadas por hipermedia. En versiones anteriores a 4.1.30, 4.2.26 y 4.3.12, el AbstractItemNormalizer del serializador no valida el tipo de recurso devuelto al resolver IRIs de relación, permitiendo una confusión de tipos donde un recurso de un tipo no intencionado puede ser asignado silenciosamente a una propiedad de relación. Un atacante que puede enviar solicitudes de escritura (POST/PUT/PATCH) a un endpoint de API Platform con relaciones escribibles puede proporcionar un IRI de relación apuntando a un recurso de un tipo diferente al de la clase declarada de la relación. Debido a que getResourceFromIri() no pasa una $operation a IriConverter::getResourceFromIri(), la guarda de tipo is_a en IriConverter.php:86 es omitida. Para propiedades de relación sin tipo (estilo heredado solo @var), el objeto de tipo incorrecto es asignado silenciosamente, corrompiendo invariantes y potencialmente alimentando lógica posterior que asume el tipo declarado (CWE-843). Para propiedades tipadas (PHP 8.x moderno), la sustitución es bloqueada por el PropertyAccessor de Symfony con una InvalidTypeException. Este problema ha sido solucionado en las versiones 4.1.30, 4.2.26 y 4.3.12. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 02, 2026
Action Type Old Value New Value Added Reference https://github.com/api-platform/core/security/advisories/GHSA-9rjg-x2p2-h68h Added SSVC {'id': 'CVE-2026-54164', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-07-02T15:50:13.142519Z'} -
New CVE Received by [email protected]
Jul. 01, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'api-platform', 'product': 'core', 'versions': [{'status': 'affected', 'version': '< 4.1.30'}, {'status': 'affected', 'version': '>= 4.2.0, < 4.2.26'}, {'status': 'affected', 'version': '>= 4.3.0, < 4.3.12'}]}] Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N Added CWE CWE-843 Added Reference https://github.com/api-platform/core/security/advisories/GHSA-9rjg-x2p2-h68h