cve.bz

CVE-2026-49858 api-platform

5.9 mediumEPSS 0.3%Fix available

Medium (5.9) in api-platform. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in api-platform/core 4.1.29, 4.2.25, 4.3.8.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-524 Use of Cache Containing Sensitive Information
CWE-639 Authorization Bypass Through User-Controlled Key
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • api-platform/core (Packagist): fixed in 4.1.29, 4.2.25, 4.3.8
  • api-platform/json-api (Packagist): fixed in 4.1.29, 4.2.25, 4.3.8
  • api-platform/hal (Packagist): fixed in 4.1.29, 4.2.25, 4.3.8

Ask an AI about this CVE

Show the promptExplain CVE-2026-49858 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-49858?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-49858?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-49858 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
api-platform core>= 2.6.0, < 4.1.29
api-platform core>= 4.2.0, < 4.2.25
api-platform core>= 4.3.0, < 4.3.8
api-platform/hal>= 2.6.0, < 4.1.29
api-platform/hal>= 4.2.0, < 4.2.25
api-platform/hal>= 4.3.0, < 4.3.8
api-platform/json-api>= 2.6.0, < 4.1.29
api-platform/json-api>= 4.2.0, < 4.2.25
api-platform/json-api>= 4.3.0, < 4.3.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pjhx-3c3w-9v23Packagistapi-platform/core>=2.6.0 <4.1.294.1.29
GHSA-pjhx-3c3w-9v23Packagistapi-platform/core>=4.2.0 <4.2.254.2.25
GHSA-pjhx-3c3w-9v23Packagistapi-platform/core>=4.3.0 <4.3.84.3.8
GHSA-pjhx-3c3w-9v23Packagistapi-platform/json-api>=4.0.0 <4.1.294.1.29
GHSA-pjhx-3c3w-9v23Packagistapi-platform/json-api>=4.2.0 <4.2.254.2.25
GHSA-pjhx-3c3w-9v23Packagistapi-platform/json-api>=4.3.0 <4.3.84.3.8
GHSA-pjhx-3c3w-9v23Packagistapi-platform/hal>=4.0.0 <4.1.294.1.29
GHSA-pjhx-3c3w-9v23Packagistapi-platform/hal>=4.2.0 <4.2.254.2.25
GHSA-pjhx-3c3w-9v23Packagistapi-platform/hal>=4.3.0 <4.3.84.3.8

Attack patterns (CAPEC)

  • CAPEC-204 Lifting Sensitive Data Embedded in Cache Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON