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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-07-01T19:24:58.170Z
- Modified: 2026-07-10T14:46:38.913Z
- Also known as: GHSA-pjhx-3c3w-9v23
- Weaknesses: CWE-524, CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- api-platform core: >= 2.6.0, < 4.1.29; >= 4.2.0, < 4.2.25; >= 4.3.0, < 4.3.8
- api-platform api-platform/hal: >= 2.6.0, < 4.1.29; >= 4.2.0, < 4.2.25; >= 4.3.0, < 4.3.8
- api-platform api-platform/json-api: >= 2.6.0, < 4.1.29; >= 4.2.0, < 4.2.25; >= 4.3.0, < 4.3.8
- api-platform/core (Packagist): from 2.6.0 before 4.1.29; from 4.2.0 before 4.2.25; from 4.3.0 before 4.3.8
- api-platform/json-api (Packagist): from 4.0.0 before 4.1.29; from 4.2.0 before 4.2.25; from 4.3.0 before 4.3.8
- api-platform/hal (Packagist): from 4.0.0 before 4.1.29; from 4.2.0 before 4.2.25; from 4.3.0 before 4.3.8

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/api-platform/core/security/advisories/GHSA-pjhx-3c3w-9v23> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49858> (advisory)
- <https://github.com/api-platform/core> (package)

## Sources

- CVE List: [CVE-2026-49858](https://www.cve.org/CVERecord?id=CVE-2026-49858), CVE Terms of Use, modified 2026-07-02
- GitHub Advisory Database: [GHSA-pjhx-3c3w-9v23](https://github.com/advisories/GHSA-pjhx-3c3w-9v23), CC-BY-4.0, modified 2026-07-10
- NVD: [CVE-2026-49858](https://nvd.nist.gov/vuln/detail/CVE-2026-49858), Public domain, modified 2026-07-02

---

Page: https://cve.day/CVE-2026-49858 · Whole record: https://cve.day/CVE-2026-49858.json · Rebuilt by cve.day 2026-11-25T22:59:26.954Z
