CVE-2026-49858
published medium CVSS 3.1 · 5.9API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| api-platform | — | core>= 2.6.0, < 4.1.29 · >= 4.2.0, < 4.2.25 · >= 4.3.0, < 4.3.8 | Affected | Not stated | GitHub_M |
| api-platform | — | api-platform/hal>= 2.6.0, < 4.1.29 · >= 4.2.0, < 4.2.25 · >= 4.3.0, < 4.3.8 | Affected | Not stated | GitHub_M |
| api-platform | — | api-platform/json-api>= 2.6.0, < 4.1.29 · >= 4.2.0, < 4.2.25 · >= 4.3.0, < 4.3.8 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| api-platform | core | >= 2.6.0, < 4.1.29 (affected)>= 4.2.0, < 4.2.25 (affected)>= 4.3.0, < 4.3.8 (affected) | GitHub_M · cna |
| api-platform | api-platform/hal | >= 2.6.0, < 4.1.29 (affected)>= 4.2.0, < 4.2.25 (affected)>= 4.3.0, < 4.3.8 (affected) | GitHub_M · cna |
| api-platform | api-platform/json-api | >= 2.6.0, < 4.1.29 (affected)>= 4.2.0, < 4.2.25 (affected)>= 4.3.0, < 4.3.8 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-524 CWE-524: Use of Cache Containing Sensitive Information
- CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key
References
1Provider assertions
2GitHub_M · cna
API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 15763b8a4ab9f57386b0c276d325c469e866e4c5cd2f305f55f7233fec8c1a8f
- Ingested
- 23 Sep 2026, 09:17:57 UTC
- Source record
- Official CVE record