API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate

Summary

CVECVE-2026-49858
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-01 20:17:10 UTC
Updated2026-07-02 18:41:35 UTC
DescriptionAPI 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.

Risk And Classification

Primary CVSS: v3.1 5.9 MEDIUM from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS: 0.001970000 probability, percentile 0.096510000 (date 2026-07-02)

Problem Types: CWE-524 | CWE-639 | CWE-524 CWE-524: Use of Cache Containing Sensitive Information | CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
3.1CNADECLARED5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v3.1 Breakdown

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Api-platform Core affected >= 2.6.0, < 4.1.29 Not specified
CNA Api-platform Core affected >= 4.2.0, < 4.2.25 Not specified
CNA Api-platform Core affected >= 4.3.0, < 4.3.8 Not specified
CNA Api-platform Api-platform/hal affected >= 2.6.0, < 4.1.29 Not specified
CNA Api-platform Api-platform/hal affected >= 4.2.0, < 4.2.25 Not specified
CNA Api-platform Api-platform/hal affected >= 4.3.0, < 4.3.8 Not specified
CNA Api-platform Api-platform/json-api affected >= 2.6.0, < 4.1.29 Not specified
CNA Api-platform Api-platform/json-api affected >= 4.2.0, < 4.2.25 Not specified
CNA Api-platform Api-platform/json-api affected >= 4.3.0, < 4.3.8 Not specified

References

ReferenceSourceLinkTags
github.com/api-platform/core/security/advisories/GHSA-pjhx-3c3w-9v23 [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report