# CVE-2025-31481: GraphQL query operations security can be bypassed

Source: https://junglewise.ai/threats/cve-2025-31481-graphql-query-operations-security-can-be-bypassed  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-04-04  
License: CC BY 4.0 with a link back

CVE-2025-31481 · Severity: low · CVSS 3.1 · Published 2025-04-04

GraphQL query operations security can be bypassed

Technologies: [api-platform/core (Packagist)](https://junglewise.ai/threats/technologies/api-platform-core). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2025-31481 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-31481 being exploited in the wild.

**How severe is CVE-2025-31481?** Low severity, with a CVSS score of 3.1, published 4 April 2025.

**Which products and versions are affected?** api-platform/core (Packagist) ECOSYSTEM:introduced=4.0.0-alpha.1,fixed=4.0.22; api-platform/graphql (Packagist) ECOSYSTEM:introduced=4.0.0-alpha.1,fixed=4.0.22.

**Is there a fix for CVE-2025-31481?** Yes. api-platform/core (Packagist): upgrade to 4.0.22 or later; api-platform/graphql (Packagist): upgrade to 4.0.22 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-31481?** Check whether you run api-platform/core (Packagist) or api-platform/graphql (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- api-platform/core (Packagist): upgrade to 4.0.22 or later

  ```sh
  composer require api-platform/core:^4.0.22
  ```

- api-platform/graphql (Packagist): upgrade to 4.0.22 or later

  ```sh
  composer require api-platform/graphql:^4.0.22
  ```


## Affected products

- api-platform/core (Packagist) ECOSYSTEM:introduced=4.0.0-alpha.1,fixed=4.0.22
- api-platform/graphql (Packagist) ECOSYSTEM:introduced=4.0.0-alpha.1,fixed=4.0.22

## Identifiers

- CVE-2025-31481
- GHSA-cg3c-245w-728m

## Related threats

- [API Platform Core type confusion in AbstractItemNormalizer](https://junglewise.ai/threats/cve-2026-54164-api-platform-core-type-confusion-in-abstractitemnormalizer)
- [API Platform Core information disclosure in JSON:API and HAL normalizers](https://junglewise.ai/threats/cve-2026-49858-api-platform-core-information-disclosure-in-json-api-and-hal)
- [GraphQL grant on a property might be cached with different objects](https://junglewise.ai/threats/cve-2025-31485-graphql-grant-on-a-property-might-be-cached-with-different)
- [API Platform Core can leak exceptions message that may contain sensitive information](https://junglewise.ai/threats/cve-2023-47639-api-platform-core-can-leak-exceptions-message-that-may-contain)
- [API Platform Core does not call GraphQl securityAfterResolver](https://junglewise.ai/threats/cve-2025-23204-api-platform-core-does-not-call-graphql-securityafterresolver)
