# CVE-2025-10894: Nx: nx/devkit: malicious versions of nx and plugins published to npm

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.6
- **CVSS:** 9.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.06% (percentile 64, 2026-11-26)
- **CWE:** CWE-506
- **Aliases:** GHSA-cxm3-wv7p-598c, MAL-2025-41436, MAL-2025-41437, MAL-2025-41438, MAL-2025-41439, MAL-2025-41441, MAL-2025-41442, MAL-2025-41443
- **Published:** 2025-08-27T16:42:47.000Z
- **Modified:** 2026-08-10T05:15:13.440Z

## Who should check

- Projects that depend on npm package nx (21.5.0)
- Projects that depend on npm package @nx/key (3.2.0)
- Projects that depend on npm package @nx/enterprise-cloud (3.2.0)
- Projects that depend on npm package @nx/devkit (21.5.0)
- Projects that depend on npm package @nx/js (21.5.0)
- Projects that depend on npm package @nx/workspace (21.5.0)
- Projects that depend on npm package @nx/eslint (21.5.0)
- Projects that depend on npm package @nx/node (21.5.0)

## Description

Malicious code was inserted into the Nx (build system) package and several related plugins. The tampered package was published to the npm software registry, via a supply-chain attack. Affected versions contain code that scans the file system, collects credentials, and posts them to GitHub as a repo under user's accounts.

## Affected and fixed versions

- npm `nx`: affected 21.5.0; fixed no fix listed yet (osv)
- npm `@nx/key`: affected 3.2.0; fixed no fix listed yet (osv)
- npm `@nx/enterprise-cloud`: affected 3.2.0; fixed no fix listed yet (osv)
- npm `@nx/devkit`: affected 21.5.0; fixed no fix listed yet (osv)
- npm `@nx/js`: affected 21.5.0; fixed no fix listed yet (osv)
- npm `@nx/workspace`: affected 21.5.0; fixed no fix listed yet (osv)
- npm `@nx/eslint`: affected 21.5.0; fixed no fix listed yet (osv)
- npm `@nx/node`: affected 21.5.0; fixed no fix listed yet (osv)
- nx: 20.12.0; 21.8.0; 21.7.0; 20.11.0; 21.6.0; 20.10.0; 20.9.0; 21.5.0 (cvelist)
- nx/devkit: 20.9.0; 21.5.0 (cvelist)
- nx/enterprise-cloud: 3.2.0 (cvelist)
- nx/eslint: 21.5.0 (cvelist)
- nx/js: 20.9.0; 21.5.0 (cvelist)
- nx/key: 3.2.0 (cvelist)
- nx/node: 20.9.0; 21.5.0 (cvelist)
- nx/workspace: 20.9.0; 21.5.0 (cvelist)
- Red Hat Multicluster Global Hub: see vendor advisory (cvelist)
- Red Hat OpenShift Serverless: see vendor advisory (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: see vendor advisory (cvelist)
- Red Hat Ansible Automation Platform 2: see vendor advisory (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-10894. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-10894.md
Affected: nx 21.5.0; @nx/key 3.2.0; @nx/enterprise-cloud 3.2.0; @nx/devkit 21.5.0; @nx/js 21.5.0; @nx/workspace 21.5.0; @nx/eslint 21.5.0; @nx/node 21.5.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for nx (npm), @nx/key (npm), @nx/enterprise-cloud (npm), @nx/devkit (npm), @nx/js (npm), @nx/workspace (npm): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-10894 being exploited?

There is no confirmed exploitation: CVE-2025-10894 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.06% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-10894?

Critical: CVSS 9.6 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-10894?

nx 21.5.0; @nx/key 3.2.0; @nx/enterprise-cloud 3.2.0; @nx/devkit 21.5.0; @nx/js 21.5.0; @nx/workspace 21.5.0; @nx/eslint 21.5.0; @nx/node 21.5.0.

### Is there a fix for CVE-2025-10894?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-10894?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-10894>
- patch: <https://github.com/nrwl/nx/pull/32458>
- patch: <https://github.com/nrwl/nx/commit/3905475cfd0e0ea670e20c6a9eaeb768169dc33d>
- exploit: <https://www.stepsecurity.io/blog/supply-chain-security-alert-popular-nx-build-system-package-compromised-with-data-stealing-malware>
- other: <https://access.redhat.com/security/cve/CVE-2025-10894>
- other: <https://access.redhat.com/security/supply-chain-attacks-NPM-packages>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2396282>
- other: <https://www.wiz.io/blog/s1ngularity-supply-chain-attack>
- other: <https://github.com/nrwl/nx/issues/32522>
- other: <https://github.com/nrwl/nx/issues/32523>
- other: <https://github.com/nrwl/nx>
- other: <https://github.com/ossf/malicious-packages/blob/924e3cfb512a9097299503a28807f7cbe55b2975/osv/malicious/npm/@nx/key/MAL-2025-41440.json>
- other: <https://www.npmjs.com/package/@nx/key/v/5.0.7>
- other: <https://x.com/adnanthekhan/status/1958722939534417989>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-10894>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cxm3-wv7p-598c> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-10894> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-10894>
