GitHub Advisoryadvisory · npm

GHSA-rrr2-jcr8-7q3x @nx/azure-cache Vulnerable to Build Cache Poisoning via Untrusted Pull Requests

CRITICAL Published 2025-06-10 Modified 2025-10-14 Official page ↗
Aliases
CVE-2025-36852
Ecosystem
npm
Packages
@nx/azure-cache
Severity
Critical
CVSS 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
Weaknesses
CWE-829
Reviewed
2025-10-14

Affected packages

• npm @nx/azure-cache: <= 4.0.0 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2025-36852 A critical security vulnerability exists in remote cache extensions for common build systems utilizing bucket-based remote cache (such as… vulnerability

Weakness · CWE (1)

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness

References