API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22 and 3.4.17, a GraphQL grant on a property might be cached with different objects. The ApiPlatform\GraphQl\Serializer\ItemNormalizer::isCacheKeySafe() method is meant to prevent the caching but the parent::normalize method that is called afterwards still creates the cache key and causes the issue. This vulnerability is fixed in 4.0.22 and 3.4.17.
| Package (Ecosystem) | Introduced | Fixed | Limit |
|---|---|---|---|
| api-platform/graphql(Packagist) | 4.0.0-alpha.1 | 4.0.22 | N/A |
| api-platform/core(Packagist) | 4.0.0-alpha.1 | 4.0.22 | N/A |
| api-platform/graphql(Packagist) | 0 | 3.4.17 | N/A |
| api-platform/core(Packagist) | 0 | 3.4.17 | N/A |
| api-platform/core(Packagist) | 4.1.0-alpha.1 | 4.1.5 | N/A |
| api-platform/graphql(Packagist) | 4.1.0-alpha.1 | 4.1.5 | N/A |
CVSS Metrics