Is api-platform/core 4.2 vulnerable?

Composer · 27 releases from 4.2.0 to 4.2.26 · latest api-platform/core is 5.0.8 · checked 18 Nov 2026

No known advisories in the last release

api-platform/core 4.2.26, the last 4.2 release, has no known advisories. 2 advisories affect earlier 4.2.x releases, so update to 4.2.26.

Update within 4.2:composer require api-platform/core:^4.2.26

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

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.2.x, affecting earlier releases

  • MediumCVE-2026-54164GHSA-9rjg-x2p2-h68h7 Aug 2026

    API Platform Core: Relation IRIs are not type-checked: a related resource can be denormalised as the wrong resource type (type confusion)

    Affected
    <4.1.30 · >=4.2.0 <4.2.26 · >=4.3.0 <4.3.12
    Fixed in
    4.1.30, 4.2.26, 4.3.12
  • MediumCVE-2026-49858GHSA-pjhx-3c3w-9v2310 Jul 2026

    API Platform Core vulnerable to cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate

    Affected
    >=2.6.0 <4.1.29 · >=4.2.0 <4.2.25 · >=4.3.0 <4.3.8
    Fixed in
    4.1.29, 4.2.25, 4.3.8

Every api-platform/core 4.2.x release

Affected: 4.2.0 to 4.2.25. 4.2.26 is not affected. Latest api-platform/core: 5.0.8.

VersionKnown advisories
api-platform/core 4.2.26None
api-platform/core 4.2.25CVE-2026-54164
api-platform/core 4.2.24CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.23CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.22CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.21CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.20CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.19CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.18CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.17CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.16CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.15CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.14CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.13CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.12CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.11CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.10CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.9CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.8CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.7CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.6CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.5CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.4CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.3CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.2CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.1CVE-2026-54164, CVE-2026-49858
api-platform/core 4.2.0CVE-2026-54164, CVE-2026-49858

Which of your client projects are still on api-platform/core 4.2?

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

Other api-platform/core 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.