CVE-2026-49858: CWE-524: Use of Cache Containing Sensitive Information in api-platform core
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.
AI Analysis
Technical Summary
The vulnerability in API Platform Core arises from the use of a cache keyed by $context['cache_key'] in the JSON:API and HAL item normalizers without verifying if the cache key is safe for reuse across different users. The #[ApiProperty(security: ...)] attribute is evaluated per request to control property exposure, but the cached component structure (attributes, relationships, links) can be reused for subsequent requests with different user privileges. This leads to a cross-user attribute leak where a user with lower privileges may see data structures meant to be restricted. The flaw is addressed in versions 4.1.29, 4.2.26, and 4.3.12.
Potential Impact
Confidentiality is impacted as users with lower privileges may gain unauthorized visibility into attributes and relationships that should be hidden according to security predicates. There is no impact on integrity or availability reported. The CVSS score of 5.9 (medium severity) reflects a network attack vector with high confidentiality impact but requiring high attack complexity and no privileges or user interaction.
Mitigation Recommendations
A fix is available in API Platform Core versions 4.1.29, 4.2.26, and 4.3.12. Users should upgrade to one of these versions or later to remediate the vulnerability. No alternative mitigations or temporary workarounds are indicated in the provided data.
CVE-2026-49858: CWE-524: Use of Cache Containing Sensitive Information in api-platform core
Description
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.
CVSS v3.1
Score 5.9medium
Affected software
pkg:composer/api-platform/coreRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in API Platform Core arises from the use of a cache keyed by $context['cache_key'] in the JSON:API and HAL item normalizers without verifying if the cache key is safe for reuse across different users. The #[ApiProperty(security: ...)] attribute is evaluated per request to control property exposure, but the cached component structure (attributes, relationships, links) can be reused for subsequent requests with different user privileges. This leads to a cross-user attribute leak where a user with lower privileges may see data structures meant to be restricted. The flaw is addressed in versions 4.1.29, 4.2.26, and 4.3.12.
Potential Impact
Confidentiality is impacted as users with lower privileges may gain unauthorized visibility into attributes and relationships that should be hidden according to security predicates. There is no impact on integrity or availability reported. The CVSS score of 5.9 (medium severity) reflects a network attack vector with high confidentiality impact but requiring high attack complexity and no privileges or user interaction.
Mitigation Recommendations
A fix is available in API Platform Core versions 4.1.29, 4.2.26, and 4.3.12. Users should upgrade to one of these versions or later to remediate the vulnerability. No alternative mitigations or temporary workarounds are indicated in the provided data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-01T22:03:19.640Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a456fd127e9c79719097e63
Added to database: 07/01/2026, 19:51:45 UTC
Last enriched: 07/09/2026, 09:22:39 UTC
Last updated: 08/16/2026, 00:41:14 UTC
Views: 92
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.