Advisory

GHSA-rrr2-jcr8-7q3x

Also known as: CVE-2025-36852

Summary

@nx/azure-cache Vulnerable to Build Cache Poisoning via Untrusted Pull Requests

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2025-06-10 21:31 UTC
Modified
2025-10-14 21:42 UTC

Affected packages and fixes

@nx/azure-cache

npm · All systems

Affected

  • introduced 0, last affected 4.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences