Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-49858
Published:July 01, 2026
Updated:July 21, 2026
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. In versions from 2.6.0 prior to 4.1.29, 4.2.26, and 4.3.12, a missing isCacheKeySafe gate in the JSON:API and HAL item normalizers causes a cross-user attribute leak. #[ApiProperty(security: ...)] is evaluated per request to decide whether a property is exposed. The componentsCache arrays in ApiPlatform\JsonApi\Serializer\ItemNormalizer and ApiPlatform\Hal\Serializer\ItemNormalizer are keyed on $context['cache_key'], which is set unconditionally before delegating to the parent normalizer. The component structure (attributes, relationships, links) computed for one request can therefore be reused for a subsequent request whose user has a different set of accessible properties. A user with lower privileges may end up seeing the structure of properties that the security predicate would otherwise have hidden for them. This issue has been fixed in versions 4.1.29, 4.2.26, and 4.3.12.
Affected Packages
api-platform/json-api (PHP):
Affected version(s) =4.3.x-dev <4.3.8
Fix Suggestion:
Update to version 4.3.8
api-platform/hal (PHP):
Affected version(s) >=v4.2.3 <v4.2.25
Fix Suggestion:
Update to version v4.2.25
api-platform/core (PHP):
Affected version(s) =4.2.x-dev <4.2.25
Fix Suggestion:
Update to version 4.2.25
api-platform/json-api (PHP):
Affected version(s) >=4.0.x-dev <4.1.29
Fix Suggestion:
Update to version 4.1.29
api-platform/core (PHP):
Affected version(s) =4.3.x-dev <4.3.8
Fix Suggestion:
Update to version 4.3.8
api-platform/json-api (PHP):
Affected version(s) =4.2.x-dev <4.2.25
Fix Suggestion:
Update to version 4.2.25
api-platform/json-api (PHP):
Affected version(s) >=v4.2.0 <v4.2.25
Fix Suggestion:
Update to version v4.2.25
api-platform/core (PHP):
Affected version(s) >=2.6.x-dev <4.1.29
Fix Suggestion:
Update to version 4.1.29
api-platform/core (PHP):
Affected version(s) >=v4.3.0 <v4.3.8
Fix Suggestion:
Update to version v4.3.8
api-platform/core (PHP):
Affected version(s) >=v4.2.0 <v4.2.25
Fix Suggestion:
Update to version v4.2.25
api-platform/core (PHP):
Affected version(s) >=v2.6.0 <v4.1.29
Fix Suggestion:
Update to version v4.1.29
api-platform/json-api (PHP):
Affected version(s) >=v4.3.0 <v4.3.8
Fix Suggestion:
Update to version v4.3.8
api-platform/hal (PHP):
Affected version(s) >=v4.3.0 <v4.3.8
Fix Suggestion:
Update to version v4.3.8
api-platform/json-api (PHP):
Affected version(s) >=v4.0.0 <v4.1.29
Fix Suggestion:
Update to version v4.1.29
api-platform/hal (PHP):
Affected version(s) =4.3.x-dev <4.3.8
Fix Suggestion:
Update to version 4.3.8
api-platform/hal (PHP):
Affected version(s) =4.2.x-dev <4.2.25
Fix Suggestion:
Update to version 4.2.25
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Authorization Bypass Through User-Controlled Key
Use of Cache Containing Sensitive Information
EPSS
Base Score:
0.20