Live threats

All CVEs / api-platform

CVE-2025-31485api-platform core

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Apr 3, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-696
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist api-platform/core ≥ 4.0.0-alpha.1 < 4.0.22 4.0.22 composer require "api-platform/core:^4.0.22"
Packagist api-platform/core < 3.4.17 3.4.17 composer require "api-platform/core:^3.4.17"
Packagist api-platform/core ≥ 4.1.0-alpha.1 < 4.1.5 4.1.5 composer require "api-platform/core:^4.1.5"
Packagist api-platform/graphql ≥ 4.0.0-alpha.1 < 4.0.22 4.0.22 composer require "api-platform/graphql:^4.0.22"
Packagist api-platform/graphql < 3.4.17 3.4.17 composer require "api-platform/graphql:^3.4.17"
Packagist api-platform/graphql ≥ 4.1.0-alpha.1 < 4.1.5 4.1.5 composer require "api-platform/graphql:^4.1.5"

Per OSV / GitHub Advisories (GHSA-428q-q3vv-3fq3). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.