Loading advisory.
Loading advisory.
GraphQL grant on a property might be cached with different objects
I found an issue with security grants on on properties in the GraphQL ItemNormalizer:
Published 2025-04-03 19:31 UTC · Modified 2025-08-29 21:36 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/graphql | Packagist | >= 4.0.0-alpha.1, < 4.0.22 < 3.4.17 >= 4.1.0-alpha.1, < 4.1.5 versions v4.0.0, v4.0.0-alpha.1, v4.0.0-alpha.2, v4.0.0-alpha.3, v4.0.0-alpha.4, v4.0.0-alpha.5, v4.0.0-alpha.6, v4.0.0-alpha.7, v4.0.0-beta.1, v4.0.0-beta.2, 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 and 70 more | 4.0.22, 3.4.17, 4.1.5 | composer require 'api-platform/graphql:>=4.0.22'composer require 'api-platform/graphql:>=3.4.17'composer require 'api-platform/graphql:>=4.1.5' |
| api-platform/core | Packagist | >= 4.0.0-alpha.1, < 4.0.22 < 3.4.17 >= 4.1.0-alpha.1, < 4.1.5 versions v4.0.0, v4.0.0-alpha.1, v4.0.0-alpha.2, v4.0.0-alpha.3, v4.0.0-alpha.4, v4.0.0-alpha.5, v4.0.0-alpha.6, v4.0.0-alpha.7, v4.0.0-beta.1, v4.0.0-beta.2, 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 and 272 more | 4.0.22, 3.4.17, 4.1.5 | composer require 'api-platform/core:>=4.0.22'composer require 'api-platform/core:>=3.4.17'composer require 'api-platform/core:>=4.1.5' |
I found an issue with security grants on on properties in the GraphQL ItemNormalizer:
If you use something like #[ApiProperty(security: 'is_granted("PROPERTY_READ", [object, property])')] on a member of an entity, the grant gets cached and is only evaluated once, even if the object in question is a different one.
There is the ApiPlatform\GraphQl\Serializer\ItemNormalizer::isCacheKeySafe() method that seems to be intended to prevent this: https://github.com/api-platform/core/blob/88f5ac50d20d6510686a7552310cc567fcca45bf/src/GraphQl/Serializer/ItemNormalizer.php#L160-L164
and in its usage on line 90 it does indeed not create a cache key, but the parent::normalize() that is called afterwards still creates the cache key and causes the issue.
It grants access to properties that it should not.
Override the ItemNormalizer.
Patched at: https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.009 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.009 | 0.006 | v2026.06.15 |