Loading advisory.
Loading advisory.
API Platform Core vulnerable to cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
#[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…
Published 2026-07-01 19:24 UTC · Modified 2026-07-10 14:46 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| api-platform/core | Packagist | >= 2.6.0, < 4.1.29 >= 4.2.0, < 4.2.25 >= 4.3.0, < 4.3.8 versions 4.1.14, v2.6.0, v2.6.1, v2.6.2, v2.6.3, v2.6.3-alpha.1, v2.6.3.alpha, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.7.0, v2.7.0-alpha.1, v2.7.0-alpha.2, v2.7.0-alpha.3, v2.7.0-alpha.4, v2.7.0-alpha.5, v2.7.0-alpha.6, v2.7.0-alpha.7 and 243 more | 4.1.29, 4.2.25, 4.3.8 | composer require 'api-platform/core:>=4.1.29'composer require 'api-platform/core:>=4.2.25'composer require 'api-platform/core:>=4.3.8' |
| api-platform/json-api | Packagist | >= 4.0.0, < 4.1.29 >= 4.2.0, < 4.2.25 >= 4.3.0, < 4.3.8 versions 4.1.14, v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.16, v4.0.17, v4.0.18, v4.0.19, v4.0.2, v4.0.20, v4.0.21, v4.0.22, v4.0.3, v4.0.4, v4.0.5 and 68 more | 4.1.29, 4.2.25, 4.3.8 | composer require 'api-platform/json-api:>=4.1.29'composer require 'api-platform/json-api:>=4.2.25'composer require 'api-platform/json-api:>=4.3.8' |
| api-platform/hal | Packagist | >= 4.0.0, < 4.1.29 >= 4.2.0, < 4.2.25 >= 4.3.0, < 4.3.8 versions v4.2.10, v4.2.11, v4.2.12, v4.2.13, v4.2.14, v4.2.15, v4.2.16, v4.2.17, v4.2.18, v4.2.19, v4.2.20, v4.2.21, v4.2.22, v4.2.23, v4.2.24, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7 and 10 more | 4.1.29, 4.2.25, 4.3.8 | composer require 'api-platform/hal:>=4.1.29'composer require 'api-platform/hal:>=4.2.25'composer require 'api-platform/hal:>=4.3.8' |
#[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 is the same vulnerability class as GHSA-428q-q3vv-3fq3 / CVE-2025-31485, which fixed only the GraphQL ItemNormalizer. The JSON:API and HAL paths were not addressed at the time.
Exploitation requires all of the following to coincide:
The application exposes a resource via the JSON:API and/or HAL formats.
At least one property of that resource uses #[ApiProperty(security: ...)] with a predicate whose result depends on the current user (or on per-request state).
A request from a user for whom the predicate evaluates to true populates componentsCache before a request from a user for whom the predicate evaluates to false, within the lifetime of the same PHP process.
The deployment uses a long-running PHP runtime that keeps the normalizer instance alive across requests (FrankenPHP worker mode, RoadRunner, Swoole, ReactPHP, etc.). With classic php-fpm workers the cache only survives the duration of a single request, which makes the issue much harder to observe in practice.
4.1.29
4.2.25
4.3.8
All three branches receive patched releases of api-platform/core, api-platform/json-api, and api-platform/hal.
Override the JSON:API and HAL ItemNormalizer services to gate $context['cache_key'] with a resource-class security check, or avoid #[ApiProperty(security: ...)] on resources served as JSON:API or HAL until the patch is applied. Pinning the deployment to classic php-fpm workers also limits exposure since the cache does not survive across requests.
Tillmann Baumgart (@tillmon) — originally identified the broader cache-key gap and proposed moving isCacheKeySafe to AbstractItemNormalizer.
Antoine Bluchet (@soyuka) — extended the gate to JSON:API and HAL normalizers.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |