Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nx/azure-cache
  4. ›
  5. CVE-2025-36852

CVE-2025-36852: @nx/azure-cache Vulnerable to Build Cache Poisoning via Untrusted Pull Requests

June 10, 2025 (updated November 10, 2025)

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.

References

  • github.com/advisories/GHSA-rrr2-jcr8-7q3x
  • github.com/nrwl/nx
  • nvd.nist.gov/vuln/detail/CVE-2025-36852
  • nx.app/files/cve-2025-06
  • nx.dev/blog/creep-vulnerability-build-cache-security
  • nx.dev/docs/reference/remote-cache-plugins/azure-cache/overview

Code Behaviors & Features

Detect and mitigate CVE-2025-36852 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 4.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

npm/@nx/azure-cache/CVE-2025-36852.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 15 Nov 2025 00:18:12 +0000.