Home / api-platform / core / CVE-2025-31485
CVE-2025-31485: is it exploited, and which versions of api-platform core are affected and fixed?
CVE-2025-31485 is an incorrect Behavior Order vulnerability in api-platform core. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: api-platform/graphql from 4.0.0-alpha.1 before 4.0.22, api-platform/core from 4.0.0-alpha.1 before 4.0.22, api-platform/graphql before 3.4.17 and 3 more (GitHub advisory GHSA-428q-q3vv-3fq3). Fixed in 4.0.22, 3.4.17 and 4.1.5 (GitHub advisory GHSA-428q-q3vv-3fq3). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:21 UTC.
What is CVE-2025-31485?
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.
From the CVE record by GitHub_M, last updated April 8, 2025, 13:15 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| api-platform | core | >= 4.0.0-alpha.1, < 4.0.22 < 3.4.17 |
As the CVE record by GitHub_M states it, last updated April 8, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | api-platform/graphql | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 | GHSA-428q-q3vv-3fq3 |
| Packagist | api-platform/core | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 | GHSA-428q-q3vv-3fq3 |
| Packagist | api-platform/graphql | < 3.4.17 | 3.4.17 | GHSA-428q-q3vv-3fq3 |
| Packagist | api-platform/core | < 3.4.17 | 3.4.17 | GHSA-428q-q3vv-3fq3 |
| Packagist | api-platform/core | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 | GHSA-428q-q3vv-3fq3 |
| Packagist | api-platform/graphql | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 | GHSA-428q-q3vv-3fq3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 29, 2025. Summary: GraphQL grant on a property might be cached with different objects.
How severe is CVE-2025-31485?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-31485 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, April 3, 2025)
- EPSS
- 0.63% probability of exploitation activity in the next 30 days, percentile 51.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-696 Incorrect Behavior Order
Where are the vendor advisories and references?
- https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3 x_refsource_CONFIRM
- https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8 x_refsource_MISC
- https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a x_refsource_MISC
- https://github.com/api-platform/core/releases/tag/v3.4.17 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 28, 2025
- Published
- April 3, 2025, 19:31 UTC
- CVE record updated
- April 8, 2025, 13:15 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 09:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:21 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect core?
- Jul 1, 2026CVE-2026-49858 api-platform core: use of Cache Containing Sensitive Information
- Jul 1, 2026CVE-2026-54164 api-platform core: type confusion
- Apr 3, 2025CVE-2025-31481 api-platform core: incorrect authorization
- Apr 3, 2025CVE-2023-47639 api-platform core: information disclosure in error messages
- Mar 24, 2025CVE-2025-23204 api-platform core: improper input validation
- Feb 28, 2023CVE-2023-25575 api-platform core: placement of User into Incorrect Group
- Feb 4, 2019CVE-2019-1000011 Api-platform Core: improper access control
Questions about CVE-2025-31485
Is CVE-2025-31485 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.63% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of api-platform core are affected by CVE-2025-31485?
api-platform/graphql from 4.0.0-alpha.1 before 4.0.22, api-platform/core from 4.0.0-alpha.1 before 4.0.22, api-platform/graphql before 3.4.17, api-platform/core before 3.4.17, api-platform/core from 4.1.0-alpha.1 before 4.1.5 and api-platform/graphql from 4.1.0-alpha.1 before 4.1.5, per the GitHub advisory GHSA-428q-q3vv-3fq3. The tables above give every range the sources list.
Which version fixes CVE-2025-31485?
4.0.22, 3.4.17 and 4.1.5, per the GitHub advisory GHSA-428q-q3vv-3fq3. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-31485?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-31485?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.