CVE-2026-49858

Source
https://cve.org/CVERecord?id=CVE-2026-49858
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49858.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-49858
Aliases
Published
2026-07-01T19:24:58.170Z
Modified
2026-07-08T08:13:41.690100674Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49858.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-524",
        "CWE-639"
    ]
}
References

Affected packages

Git / github.com/api-platform/core

Affected ranges

Type
GIT
Repo
https://github.com/api-platform/core
Events
Database specific
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "2.6.0"
        },
        {
            "fixed": "4.1.29"
        },
        {
            "introduced": "4.2.0"
        },
        {
            "fixed": "4.2.25"
        },
        {
            "introduced": "4.3.0"
        },
        {
            "fixed": "4.3.8"
        }
    ]
}

Affected versions

v2.*
v2.6.0
v2.7.0-alpha.1
v2.7.0-alpha.2
v3.*
v3.0.0
v3.0.0-beta.2
v3.0.0-rc.1
v3.0.0-rc.2
v3.2.0-alpha.1
v3.2.0-alpha.2
v3.3.0-alpha.1
v3.3.0-alpha.2
v3.3.0-beta.1
v3.3.0-beta.2
v4.*
v4.0.0-alpha.1
v4.0.0-alpha.2
v4.0.0-alpha.3
v4.0.0-alpha.4
v4.0.0-alpha.5
v4.0.0-alpha.6
v4.0.0-alpha.7
v4.0.0-beta.1
v4.0.0-beta.2
v4.1.0-alpha.1
v4.1.0-alpha.2
v4.1.0-beta.1
v4.1.0-beta.2
v4.1.1
v4.1.10
v4.1.11
v4.1.12
v4.1.13
v4.1.14
v4.1.15
v4.1.16
v4.1.17
v4.1.18
v4.1.19
v4.1.2
v4.1.20
v4.1.21
v4.1.22
v4.1.23
v4.1.24
v4.1.25
v4.1.26
v4.1.27
v4.1.28
v4.1.3
v4.1.4
v4.1.5
v4.1.6
v4.1.7
v4.1.8
v4.1.9
v4.2.0
v4.2.1
v4.2.10
v4.2.11
v4.2.12
v4.2.13
v4.2.14
v4.2.15
v4.2.16
v4.2.17
v4.2.18
v4.2.19
v4.2.2
v4.2.20
v4.2.21
v4.2.22
v4.2.23
v4.2.24
v4.2.3
v4.2.4
v4.2.5
v4.2.6
v4.2.7
v4.2.9
v4.3.0
v4.3.1
v4.3.2
v4.3.3
v4.3.4
v4.3.5
v4.3.6
v4.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49858.json"