Vulnerability · Published Jul 1, 2026 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity authorization bypass via user-controlled key in api-platform/hal from api-platform. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.3%top 75.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistapi-platform/core4.1.29GHSA-pjhx-3c3w-9v23
Packagistapi-platform/core4.2.25GHSA-pjhx-3c3w-9v23
Packagistapi-platform/core4.3.8GHSA-pjhx-3c3w-9v23
Packagistapi-platform/hal4.3.8GHSA-pjhx-3c3w-9v23
Packagistapi-platform/hal4.1.29GHSA-pjhx-3c3w-9v23
Packagistapi-platform/hal4.2.25GHSA-pjhx-3c3w-9v23
Packagistapi-platform/json-api4.1.29GHSA-pjhx-3c3w-9v23
Packagistapi-platform/json-api4.2.25GHSA-pjhx-3c3w-9v23
Packagistapi-platform/json-api4.3.8GHSA-pjhx-3c3w-9v23

Affected products (as reported)

VendorProductVersions
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

Weakness: CWE-524, CWE-639 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References