Live threats

All CVEs / api-platform

CVE-2025-31481api-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-863
SSVC (CISA)
Exploitation: proof of concept · 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. Using the Relay special node type you can bypass the configured security on an operation. 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-cg3c-245w-728m). 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.