Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. api-platform/graphql
  4. ›
  5. CVE-2025-31481

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

April 4, 2025 (updated April 8, 2025)

Using the Relay special node type you can bypass the configured security on an operation.

References

  • github.com/advisories/GHSA-cg3c-245w-728m
  • github.com/api-platform/core
  • github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb
  • github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568
  • github.com/api-platform/core/releases/tag/v3.4.17
  • github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728m
  • nvd.nist.gov/vuln/detail/CVE-2025-31481

Code Behaviors & Features

Detect and mitigate CVE-2025-31481 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.4.17, all versions starting from 4.0.0-alpha.1 before 4.0.22

Fixed versions

  • 4.0.22
  • 3.4.17

Solution

Upgrade to versions 3.4.17, 4.0.22 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

packagist/api-platform/graphql/CVE-2025-31481.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:45 +0000.