{"answers":{"affected":"2 open source packages ship an affected version, including @nx/azure-cache.","exploited":"There is no known exploitation of CVE-2025-36852 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-36852 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-36852 is a critical vulnerability in Niklas Portmann AWS S3 Remote Cache Plugin for Nx, published on 10 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-36852 and fix it if it is affected.\n\nWhat it is: CVE-2025-36852 is a critical vulnerability in Niklas Portmann AWS S3 Remote Cache Plugin for Nx, published on 10 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-36852 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @nx/azure-cache (npm): affected all versions up to 4.0.0; no fix listed\n- @nx/azure-cache (npm): affected all versions up to 4.0.0; no fix listed\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-2025-36852/ (Markdown: https://insights.sbomify.com/CVE-2025-36852/index.md)","id":"CVE-2025-36852","markdown":"https://insights.sbomify.com/CVE-2025-36852/index.md","name":"CVE-2025-36852","record":{"aliases":["GHSA-rrr2-jcr8-7q3x"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Nx remote cache plugin","requires_auth":"low_privilege","summary":"Attackers with pull request access can poison build caches to inject malicious artifacts into trusted production environments, bypassing standard security checks.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HeroDevs","cpe":[],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/S:P/AU:Y/R:U/V:C/RE:M/U:Red","version":"4.0"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"description":"A critical security vulnerability exists in remote cache extensions for common build systems utilizing bucket-based remote cache (such as those using Amazon S3, Google Cloud Storage, or similar object storage) that allows any contributor with pull request privileges to inject compromised artifacts from an untrusted environment into trusted production environments without detection. \n\nThe vulnerability exploits a fundamental design flaw in the \"first-to-cache wins\" principle, where artifacts built in untrusted environments (feature branches, pull requests) can poison the cache used by trusted environments (protected branches, production deployments). \n\nThis attack bypasses all traditional security measures including encryption, access controls, and checksum validation because the poisoning occurs during the artifact construction phase, before any security measures are applied.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Build Cache Poisoning via Untrusted Pull Requests","id":"CVE-2025-36852","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"supply_chain","year":"2025"},"n_packages":2,"n_references":1,"next":{"headline":"EOL .NET 6.0 Runtime Remote Code Execution Vulnerability","id":"CVE-2025-36853"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["4.0.0"],"package":"@nx/azure-cache","purl":null,"source":"GHSA-rrr2-jcr8-7q3x"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["4.0.0"],"package":"@nx/azure-cache","purl":"pkg:npm/%40nx/azure-cache","source":"GHSA-rrr2-jcr8-7q3x"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2025-36846"},"products":["AWS S3 Remote Cache Plugin for Nx","Azure Based Remote Cache Plugin for Nx","Azure Blob Remote Cache Plugin for Nx","GCS Remote Cache Plugin for Nx","Minio Based Remote Cache Plugin for Nx","Nx Remote Cache Utilities","Shared File System Cache Plugin for Nx"],"published":"2025-06-10","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":"total"},"state":"PUBLISHED","updated":"2025-06-10","vendors":["Niklas Portmann","Nx"]},"summary":"Attackers with pull request access can poison build caches to inject malicious artifacts into trusted production environments, bypassing standard security checks.","url":"https://insights.sbomify.com/CVE-2025-36852/"}