---
title: "GHSA-rrr2-jcr8-7q3x: @nx/azure-cache Vulnerable to Build Cache Poisoning via Untrusted Pull Requests"
description: "Critical severity. @nx/azure-cache Vulnerable to Build Cache Poisoning via Untrusted Pull Requests. Affects @nx/azure-cache; fixed in 5.0.7."
url: https://inlinr.com/advisories/GHSA-rrr2-jcr8-7q3x
lang: en
---

[Packages](https://inlinr.com/packages) / [@nx/azure-cache](https://inlinr.com/packages/@nx/azure-cache) / [Security](https://inlinr.com/packages/@nx/azure-cache/security)

Critical Vulnerability GHSA-rrr2-jcr8-7q3x CVE-2025-36852 Published 10 Jun 2025

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

Your version 

Affected releases · [@nx/azure-cache](https://inlinr.com/packages/@nx/azure-cache)

- 4.x and older 1.3.0 – 4.0.0 No fix, no longer updated

4.x has no fix yet; the newest fixed line:

```
npm install @nx/azure-cache@5.0.7
```

Every release on a timeline

5.x 

1. Not affected

5.0.0 – 5.0.7  
8 releases, latest

4.x 

1. Affected

4.0.0  
1 release

3.x 

1. Affected

3.0.0 – 3.1.1  
4 releases

2.x 

1. Affected

2.0.0 – 2.1.0  
5 releases

1.x 

1. Affected

1.3.0 – 1.3.3  
4 releases

22 stable releases of @nx/azure-cache, oldest to newest, one row per major.

## What happens

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.

## How it is exploited

Exploitable over the network, with a low-privilege account and no action from a user.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-36852 "https://nvd.nist.gov/vuln/detail/CVE-2025-36852")  
nvd.nist.gov/vuln/detail/CVE-2025-36852
- [Package](https://github.com/nrwl/nx "https://github.com/nrwl/nx")  
github.com/nrwl/nx
- [Reference](https://nx.app/files/cve-2025-06 "https://nx.app/files/cve-2025-06")  
nx.app/files/cve-2025-06
- [Reference](https://nx.dev/blog/creep-vulnerability-build-cache-security "https://nx.dev/blog/creep-vulnerability-build-cache-security")  
nx.dev/blog/creep-vulnerability-build-cache-sec…
- [Reference](https://nx.dev/docs/reference/remote-cache-plugins/azure-cache/overview "https://nx.dev/docs/reference/remote-cache-plugins/azure-cache/overview")  
nx.dev/docs/reference/remote-cache-plugins/azur…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
