Live threats

All CVEs / api-platform

CVE-2026-49858api-platform core

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
—
Auth required
No
Published
Jul 1, 2026
Updated
Jul 2, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-524, CWE-639
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/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. In versions from 2.6.0 prior to 4.1.29, 4.2.26, and 4.3.12, a missing isCacheKeySafe gate in the JSON:API and HAL item normalizers causes a cross-user attribute leak. #[ApiProperty(security: ...)] is evaluated per request to decide whether a property is exposed. The componentsCache arrays in ApiPlatform\JsonApi\Serializer\ItemNormalizer and ApiPlatform\Hal\Serializer\ItemNormalizer are keyed on $context['cache_key'], which is set unconditionally before delegating to the parent normalizer. The component structure (attributes, relationships, links) computed for one request can therefore be reused for a subsequent request whose user has a different set of accessible properties. A user with lower privileges may end up seeing the structure of properties that the security predicate would otherwise have hidden for them. This issue has been fixed in versions 4.1.29, 4.2.26, and 4.3.12.

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 ≥ 2.6.0 < 4.1.29 4.1.29 composer require "api-platform/core:^4.1.29"
Packagist api-platform/core ≥ 4.2.0 < 4.2.25 4.2.25 composer require "api-platform/core:^4.2.25"
Packagist api-platform/core ≥ 4.3.0 < 4.3.8 4.3.8 composer require "api-platform/core:^4.3.8"
Packagist api-platform/hal ≥ 4.0.0 < 4.1.29 4.1.29 composer require "api-platform/hal:^4.1.29"
Packagist api-platform/hal ≥ 4.2.0 < 4.2.25 4.2.25 composer require "api-platform/hal:^4.2.25"
Packagist api-platform/hal ≥ 4.3.0 < 4.3.8 4.3.8 composer require "api-platform/hal:^4.3.8"
Packagist api-platform/json-api ≥ 4.0.0 < 4.1.29 4.1.29 composer require "api-platform/json-api:^4.1.29"
Packagist api-platform/json-api ≥ 4.2.0 < 4.2.25 4.2.25 composer require "api-platform/json-api:^4.2.25"
Packagist api-platform/json-api ≥ 4.3.0 < 4.3.8 4.3.8 composer require "api-platform/json-api:^4.3.8"

Per OSV / GitHub Advisories (GHSA-pjhx-3c3w-9v23). 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.