{"answers":{"affected":"18 open source packages ship an affected version, including api-platform/hal, api-platform/core and api-platform/json-api.","exploited":"There is no known exploitation of CVE-2026-49858 in the wild and no public exploit code.","fix":"Upgrade api-platform/hal to a fixed version for your release line: 4.1.29, 4.2.25 or 4.3.8.","what":"CVE-2026-49858 is a medium-severity vulnerability in api-platform/hal, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49858 and fix it if it is affected.\n\nWhat it is: CVE-2026-49858 is a medium-severity vulnerability in api-platform/hal, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-49858 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- api-platform/hal (Packagist): affected from 4.0.0; fixed in 4.1.29\n- api-platform/hal (Packagist): affected from 4.0.0; fixed in 4.1.29\n- api-platform/hal (Packagist): affected from 4.2.0; fixed in 4.2.25\n- api-platform/hal (Packagist): affected from 4.2.0; fixed in 4.2.25\n- api-platform/hal (Packagist): affected from 4.3.0; fixed in 4.3.8\n- api-platform/hal (Packagist): affected from 4.3.0; fixed in 4.3.8\n- api-platform/core (Packagist): affected from 2.6.0; fixed in 4.1.29\n- api-platform/core (Packagist): affected from 2.6.0; fixed in 4.1.29\n- api-platform/core (Packagist): affected from 4.2.0; fixed in 4.2.25\n- api-platform/core (Packagist): affected from 4.2.0; fixed in 4.2.25\n- api-platform/core (Packagist): affected from 4.3.0; fixed in 4.3.8\n- api-platform/core (Packagist): affected from 4.3.0; fixed in 4.3.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49858/ (Markdown: https://insights.sbomify.com/CVE-2026-49858/index.md)","id":"CVE-2026-49858","markdown":"https://insights.sbomify.com/CVE-2026-49858/index.md","name":"CVE-2026-49858","record":{"aliases":["GHSA-pjhx-3c3w-9v23"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"API Platform Core","requires_auth":"none","summary":"Attackers can view hidden API attributes by exploiting cache key collisions in JSON:API and HAL normalizers, leaking sensitive data across users.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"},{"id":"CWE-524","name":"Use of Cache Containing Sensitive Information"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate","id":"CVE-2026-49858","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":18,"n_references":1,"next":{"headline":"Deno: `fetch()` API sandbox bypass via missing DNS resolution check","id":"CVE-2026-49859"},"packages":[{"ecosystem":"Packagist","fixed":["4.1.29"],"introduced":["2.6.0"],"last_affected":[],"package":"api-platform/core","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.1.29"],"introduced":["2.6.0"],"last_affected":[],"package":"api-platform/core","purl":"pkg:composer/api-platform/core","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.2.25"],"introduced":["4.2.0"],"last_affected":[],"package":"api-platform/core","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.2.25"],"introduced":["4.2.0"],"last_affected":[],"package":"api-platform/core","purl":"pkg:composer/api-platform/core","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.3.8"],"introduced":["4.3.0"],"last_affected":[],"package":"api-platform/core","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.3.8"],"introduced":["4.3.0"],"last_affected":[],"package":"api-platform/core","purl":"pkg:composer/api-platform/core","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.1.29"],"introduced":["4.0.0"],"last_affected":[],"package":"api-platform/hal","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.1.29"],"introduced":["4.0.0"],"last_affected":[],"package":"api-platform/hal","purl":"pkg:composer/api-platform/hal","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.2.25"],"introduced":["4.2.0"],"last_affected":[],"package":"api-platform/hal","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.2.25"],"introduced":["4.2.0"],"last_affected":[],"package":"api-platform/hal","purl":"pkg:composer/api-platform/hal","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.3.8"],"introduced":["4.3.0"],"last_affected":[],"package":"api-platform/hal","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.3.8"],"introduced":["4.3.0"],"last_affected":[],"package":"api-platform/hal","purl":"pkg:composer/api-platform/hal","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.1.29"],"introduced":["4.0.0"],"last_affected":[],"package":"api-platform/json-api","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.1.29"],"introduced":["4.0.0"],"last_affected":[],"package":"api-platform/json-api","purl":"pkg:composer/api-platform/json-api","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.2.25"],"introduced":["4.2.0"],"last_affected":[],"package":"api-platform/json-api","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.2.25"],"introduced":["4.2.0"],"last_affected":[],"package":"api-platform/json-api","purl":"pkg:composer/api-platform/json-api","source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.3.8"],"introduced":["4.3.0"],"last_affected":[],"package":"api-platform/json-api","purl":null,"source":"GHSA-pjhx-3c3w-9v23"},{"ecosystem":"Packagist","fixed":["4.3.8"],"introduced":["4.3.0"],"last_affected":[],"package":"api-platform/json-api","purl":"pkg:composer/api-platform/json-api","source":"GHSA-pjhx-3c3w-9v23"}],"prev":{"headline":"auth-fetch-mcp has SSRF Protection Bypass via IPv4-mapped IPv6 Loopback","id":"CVE-2026-49857"},"products":["api-platform/hal","api-platform/json-api","core"],"published":"2026-07-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-02","vendors":["api-platform"]},"summary":"Attackers can view hidden API attributes by exploiting cache key collisions in JSON:API and HAL normalizers, leaking sensitive data across users.","url":"https://insights.sbomify.com/CVE-2026-49858/"}