Is api-platform/hal 4.2 vulnerable?

Composer · 24 releases from 4.2.3 to 4.2.26 · latest api-platform/hal is 5.0.8 · checked 18 Nov 2026

No known advisories in the last release

api-platform/hal 4.2.26, the last 4.2 release, has no known advisories. 1 advisory affects earlier 4.2.x releases, so update to 4.2.26.

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

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

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-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
    >=4.0.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/hal 4.2.x release

Affected: 4.2.3 to 4.2.24. 4.2.25 and later are not affected. Latest api-platform/hal: 5.0.8.

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

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

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

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