Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 89%

CVE-2026-49858: CWE-524: Use of Cache Containing Sensitive Information in api-platform core

0
Medium
VulnerabilityCVE-2026-49858cvecve-2026-49858cwe-524cwe-639
Published: 07/01/2026 (07/01/2026, 19:24:58 UTC)
Source: CVE Database V5
Vendor/Project: api-platform
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

Packagistmore threats →ai
api-platform/core
pkg:composer/api-platform/core
Affected versions
<4.1.29 >=2.6.0<4.1.29 >=4.1.0<4.2.26 >=4.2.0<4.3.12 >=4.3.0

Run 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

AILast updated: 07/09/2026, 09:22:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses