CVE-2025-31485
API Platform Core is a system to create hypermedia-driven REST and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8
- github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a
- github.com/api-platform/core/releases/tag/v3.4.17
- github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3
- nvd.nist.gov/vuln/detail/CVE-2025-31485
- github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31485.y
- github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-3148
- github.com/advisories/GHSA-428q-q3vv-3fq3
- nvd.nist.gov/vuln/detail/CVE-2025-31485
- cve.org/CVERecord?id=CVE-2025-31485
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.