---
id: CVE-2026-71476
title: Nx is a monorepo solution for TypeScript and polyglot codebases
summary: >-
  Nx is a monorepo solution for TypeScript and polyglot codebases. From version
  20.8.0 until 22.7.7 and 23.0.2, the Nx self-hosted HTTP remote cache extracts
  downloaded cache artifacts without constraining where files are written. A
  malici…
severity: high
cwe:
  - CWE-22
  - CWE-59
vendor: nx
product: nx
affected:
  - 'nx >= 20.8.0, < 22.7.7'
  - '@nx/s3-cache <= 5.0.7'
  - '@nx/gcs-cache <= 5.0.7'
  - '@nx/azure-cache <= 5.0.7'
  - '@nx/shared-fs-cache <= 5.0.7'
  - '@nx/powerpack-s3-cache <= 5.0.7'
  - '@nx/powerpack-gcs-cache <= 5.0.7'
  - '@nx/powerpack-azure-cache <= 5.0.7'
  - '@nx/powerpack-shared-fs-cache <= 5.0.7'
  - 'nx >= 23.0.0, < 23.0.2'
patched:
  - nx 22.7.7
  - nx 23.0.2
published: '2026-08-06'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:05:53.723'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71476'
references:
  - url: 'https://github.com/nrwl/nx/commit/2b20c2da39d263c32ae05767577589481a309fee'
    label: security-advisories@github.com
  - url: 'https://github.com/nrwl/nx/commit/a82807621e4176e37909d2c1afede661b45cc30'
    label: security-advisories@github.com
  - url: 'https://github.com/nrwl/nx/commit/ad296578fe980a4aad66f8af0add21f6ddf907d9'
    label: security-advisories@github.com
  - url: 'https://github.com/nrwl/nx/pull/36116'
    label: security-advisories@github.com
  - url: 'https://github.com/nrwl/nx/security/advisories/GHSA-vp3h-ghgh-jr7g'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-vp3h-ghgh-jr7g'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00582
epssPercentile: 0.46534
aliases:
  - GHSA-vp3h-ghgh-jr7g
ecosystem: npm
ingestedAt: '2026-08-06T21:04:22.358Z'
---

## Overview

Nx is a monorepo solution for TypeScript and polyglot codebases. From version 20.8.0 until 22.7.7 and 23.0.2, the Nx self-hosted HTTP remote cache extracts downloaded cache artifacts without constraining where files are written. A malicious or on-path (MITM) remote cache server can return a crafted tar archive whose entries escape the cache directory and write to arbitrary locations on the machine running Nx, which can be escalated to remote code execution. Nx's default local cache and Nx Cloud are not affected; only workspaces configured to use a self-hosted remote cache are affected. This issue is fixed in versions 22.7.7 and 23.0.2.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-71476)

Affected packages:

- `nx >= 20.8.0, < 22.7.7`
- `@nx/s3-cache <= 5.0.7`
- `@nx/gcs-cache <= 5.0.7`
- `@nx/azure-cache <= 5.0.7`
- `@nx/shared-fs-cache <= 5.0.7`
- `@nx/powerpack-s3-cache <= 5.0.7`
- `@nx/powerpack-gcs-cache <= 5.0.7`
- `@nx/powerpack-azure-cache <= 5.0.7`
- `@nx/powerpack-shared-fs-cache <= 5.0.7`
- `nx >= 23.0.0, < 23.0.2`

Patched in:

- `nx 22.7.7`
- `nx 23.0.2`

Source: https://github.com/advisories/GHSA-vp3h-ghgh-jr7g
