CVE-2025-36852 Build Cache Poisoning via Untrusted Pull Requests
Attackers with pull request access can poison build caches to inject malicious artifacts into trusted production environments, bypassing standard security checks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-36852?
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.
Official 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.
Weakness: CWE-829
Which versions are affected by CVE-2025-36852?
2 open source packages ship an affected version, including @nx/azure-cache.
| Package | Affected | Fixed in |
|---|---|---|
@nx/azure-cache npm | All versions to 4.0.0 | None |
@nx/azure-cache npm | All versions to 4.0.0 | None |
How do I fix CVE-2025-36852?
No fix has been published for CVE-2025-36852 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-36852 being exploited?
There is no known exploitation of CVE-2025-36852 in the wild and no public exploit code.
Sources
Also known as GHSA-rrr2-jcr8-7q3x.