Is api-platform/graphql 4.0 vulnerable?

Composer · 23 releases from 4.0.0 to 4.0.22 · latest api-platform/graphql is 5.0.8 · checked 18 Nov 2026

No known advisories in the last release

api-platform/graphql 4.0.22, the last 4.0 release, has no known advisories. 2 advisories affect earlier 4.0.x releases, so update to 4.0.22.

Update within 4.0:composer require api-platform/graphql:^4.0.22

Is your project on an affected api-platform/graphql?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Fixed within 4.0.x, affecting earlier releases

  • HighCVE-2025-31485GHSA-428q-q3vv-3fq34 Apr 2025

    GraphQL grant on a property might be cached with different objects

    Affected
    >=4.0.0-alpha.1 <4.0.22 · <3.4.17 · >=4.1.0-alpha.1 <4.1.5
    Fixed in
    3.4.17, 4.0.22, 4.1.5
  • HighCVE-2025-31481GHSA-cg3c-245w-728m4 Apr 2025

    GraphQL query operations security can be bypassed

    Affected
    >=4.0.0-alpha.1 <4.0.22 · <3.4.17 · >=4.1.0-alpha.1 <4.1.5
    Fixed in
    3.4.17, 4.0.22, 4.1.5

Every api-platform/graphql 4.0.x release

Affected: 4.0.0 to 4.0.21. 4.0.22 is not affected. Latest api-platform/graphql: 5.0.8.

VersionKnown advisories
api-platform/graphql 4.0.22None
api-platform/graphql 4.0.21CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.20CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.19CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.18CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.17CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.16CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.15CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.14CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.13CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.12CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.11CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.10CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.9CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.8CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.7CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.6CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.5CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.4CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.3CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.2CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.1CVE-2025-31485, CVE-2025-31481
api-platform/graphql 4.0.0CVE-2025-31485, CVE-2025-31481

Which of your client projects are still on api-platform/graphql 4.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact api-platform/graphql version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other api-platform/graphql versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Composer registry. Refreshed daily.