GraphQL grant on a property might be cached with different objects
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| api-platform | core | 4.0.0-alpha.1 to before 4.0.22; before 3.4.17 | 4.0.22, 3.4.17 | Patch available | CNA |
| — | api-platform/graphql (Packagist) | 4.0.0-alpha.1 to before 4.0.22 | 4.0.22 | Patch available | GHSA-428q-q3vv-3fq3 |
| — | api-platform/core (Packagist) | 4.0.0-alpha.1 to before 4.0.22 | 4.0.22 | Patch available | GHSA-428q-q3vv-3fq3 |
| — | api-platform/graphql (Packagist) | before 3.4.17 | 3.4.17 | Patch available | GHSA-428q-q3vv-3fq3 |
| — | api-platform/core (Packagist) | before 3.4.17 | 3.4.17 | Patch available | GHSA-428q-q3vv-3fq3 |
| — | api-platform/core (Packagist) | 4.1.0-alpha.1 to before 4.1.5 | 4.1.5 | Patch available | GHSA-428q-q3vv-3fq3 |
| — | api-platform/graphql (Packagist) | 4.1.0-alpha.1 to before 4.1.5 | 4.1.5 | Patch available | GHSA-428q-q3vv-3fq3 |
- core Vendorapi-platform Affected 4.0.0-alpha.1 to before 4.0.22; before 3.4.17 Fixed in 4.0.22, 3.4.17 Patch available CNA
- api-platform/graphql (Packagist) Vendor— Affected 4.0.0-alpha.1 to before 4.0.22 Fixed in 4.0.22 Patch available GHSA-428q-q3vv-3fq3
- api-platform/core (Packagist) Vendor— Affected 4.0.0-alpha.1 to before 4.0.22 Fixed in 4.0.22 Patch available GHSA-428q-q3vv-3fq3
- api-platform/graphql (Packagist) Vendor— Affected before 3.4.17 Fixed in 3.4.17 Patch available GHSA-428q-q3vv-3fq3
- api-platform/core (Packagist) Vendor— Affected before 3.4.17 Fixed in 3.4.17 Patch available GHSA-428q-q3vv-3fq3
- api-platform/core (Packagist) Vendor— Affected 4.1.0-alpha.1 to before 4.1.5 Fixed in 4.1.5 Patch available GHSA-428q-q3vv-3fq3
- api-platform/graphql (Packagist) Vendor— Affected 4.1.0-alpha.1 to before 4.1.5 Fixed in 4.1.5 Patch available GHSA-428q-q3vv-3fq3
Remediation
- Fix · CNA core (api-platform) Fixed in 4.0.22, 3.4.17
- Fix · GHSA-428q-q3vv-3fq3 api-platform/graphql (Packagist) Fixed in 4.0.22 Advisory →
- Fix · GHSA-428q-q3vv-3fq3 api-platform/core (Packagist) Fixed in 4.0.22 Advisory →
- Fix · GHSA-428q-q3vv-3fq3 api-platform/graphql (Packagist) Fixed in 3.4.17 Advisory →
- Fix · GHSA-428q-q3vv-3fq3 api-platform/core (Packagist) Fixed in 3.4.17 Advisory →
- Fix · GHSA-428q-q3vv-3fq3 api-platform/core (Packagist) Fixed in 4.1.5 Advisory →
- Fix · GHSA-428q-q3vv-3fq3 api-platform/graphql (Packagist) Fixed in 4.1.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-31485
- 2026-10-03 Alias added: GHSA-428q-q3vv-3fq3
- 2026-10-31 EPSS moved to the 50th–90th percentile
References
Other 7
- https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3
- https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8
- https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a
- https://github.com/api-platform/core/releases/tag/v3.4.17
- https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31485.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-31485.yaml
- https://github.com/api-platform/core
More api-platform vulnerabilities
- TI-2025-22662 GraphQL query operations security can be bypassed CVSS 3.1HIGH 7.5
- TI-2023-25779 API Platform Core can leak exceptions message that may contain sensitive information CVSS 3.1MEDIUM 5.3
- TI-2026-39072 API Platform Core: Missing IRI type check enables resource type confusion CVSS 3.1MEDIUM 6.5
- TI-2025-16989 GraphQl securityAfterResolver not called CVSS 3.1MEDIUM 4.4
- TI-2023-10878 Secured properties in API Platform Core may be accessible within collections CVSS 3.1HIGH 7.7
- TI-2019-15828 API Platform version from 2.2.0 to 2.3.5 contains an Incorrect Access Control… CVSS 3.0MEDIUM 6.5
Sources
- CVE-2025-31485 · CVE Program
- CVE-2025-31485 · NVD
- FIRST EPSS
- GHSA-428q-q3vv-3fq3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences