# CVE-2025-36852: Build Cache Poisoning via Untrusted Pull Requests

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.4
- **CVSS:** 9.4 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High; S: P; AU: Y; R: U; V: C; RE: M; U: Red
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-829
- **Aliases:** GHSA-rrr2-jcr8-7q3x
- **Published:** 2025-06-10T19:23:33.956Z
- **Modified:** 2026-06-17T09:14:55.500Z

## Who should check

- Projects that depend on npm package @nx/azure-cache (\<= 4.0.0)
- Anyone running Niklas Portmann Azure Based Remote Cache Plugin for Nx all versions
- Anyone running Niklas Portmann Minio Based Remote Cache Plugin for Nx all versions
- Anyone running Niklas Portmann Nx Remote Cache Utilities all versions
- Anyone running AWS S3 Remote Cache Plugin for Nx all versions
- Anyone running GCS Remote Cache Plugin for Nx all versions
- Anyone running Azure Blob Remote Cache Plugin for Nx all versions
- Anyone running Shared File System Cache Plugin for Nx all versions

## 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. 




The 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). 




This 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.

## Affected and fixed versions

- npm `@nx/azure-cache`: affected \<= 4.0.0; fixed no fix listed yet (osv)
- Niklas Portmann Azure Based Remote Cache Plugin for Nx: all versions (cvelist)
- Niklas Portmann Minio Based Remote Cache Plugin for Nx: all versions (cvelist)
- Niklas Portmann Nx Remote Cache Utilities: all versions (cvelist)
- AWS S3 Remote Cache Plugin for Nx: all versions (cvelist)
- GCS Remote Cache Plugin for Nx: all versions (cvelist)
- Azure Blob Remote Cache Plugin for Nx: all versions (cvelist)
- Shared File System Cache Plugin for Nx: all versions (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-36852. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-36852.md
Affected: @nx/azure-cache <= 4.0.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for @nx/azure-cache (npm), Niklas Portmann Azure Based Remote Cache Plugin for Nx, Niklas Portmann Minio Based Remote Cache Plugin for Nx, Niklas Portmann Nx Remote Cache Utilities, AWS S3 Remote Cache Plugin for Nx, GCS Remote Cache Plugin for Nx: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-36852 being exploited?

There is no confirmed exploitation: CVE-2025-36852 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-36852?

Critical: CVSS 9.4 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2025-36852?

@nx/azure-cache \<= 4.0.0.

### Is there a fix for CVE-2025-36852?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-36852?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-36852>
- other: <https://nx.app/files/cve-2025-06>
- other: <https://github.com/nrwl/nx>
- other: <https://nx.dev/blog/creep-vulnerability-build-cache-security>
- other: <https://nx.dev/docs/reference/remote-cache-plugins/azure-cache/overview>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-36852>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rrr2-jcr8-7q3x> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-36852> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-36852>
