CVE-2025-10894: Malicious Nx npm Package Supply-Chain Compromise
CVE-2025-10894 refers to a supply-chain compromise of the Nx build system and related @nx npm plugins in which malicious code was inserted into published packages on the npm registry. The attack chain began with compromise of the Nx GitHub Actions environment via a workflow using pull_request_target on forked pull requests; attackers reportedly injected bash payloads through pull request titles, obtained arbitrary command execution in CI, and stole npm publishing credentials. Using those credentials, they published tampered Nx package versions and related plugins. The malicious packages executed post-install payloads, including code in files such as telemetry.js or bundle.js, that scanned victim file systems for SSH keys, GitHub and npm tokens, cloud credentials, and cryptocurrency wallet data, then exfiltrated the collected material by creating GitHub repositories under the victim's account and uploading the data there. The malware also modified shell startup files and attempted persistence through malicious workflow injection into repositories. The campaign primarily targeted macOS and Linux systems.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Installation of an affected Nx or related @nx package version can result in immediate compromise of the installing developer workstation or CI/CD runner. Observed impacts include theft of SSH private keys, GitHub personal access tokens, npm authentication tokens, cloud provider credentials, and cryptocurrency wallet material; unauthorized creation of GitHub repositories under victim accounts for exfiltration; modification of .zshrc and .bashrc; and potential follow-on compromise of source code, package publishing pipelines, cloud environments, and downstream software supply chains. Because stolen npm credentials were used to infect additional publishable packages, successful compromise can also enable propagation into other npm projects and broader ecosystem compromise.
Mitigation
If you can’t patch tonight, do this now.
Immediately assess exposure by checking GitHub security logs for repo.create events and repositories matching known attacker patterns such as 's1ngularity-repository', inspecting systems for indicators such as /tmp/inventory.txt, and reviewing .zshrc and .bashrc for unauthorized modifications. Stop using affected package versions, clear npm, yarn, pnpm, and npx caches, and purge compromised artifacts from internal mirrors. Revoke GitHub CLI app authorization and invalidate potentially exposed gh tokens. Restrict or harden CI workflows to prevent similar token theft, including avoiding unsafe pull_request_target patterns for untrusted fork input, minimizing token permissions, and adopting trusted publishing mechanisms such as npm Trusted Publisher.
Remediation
Patch, then assume compromise.
Remove all affected Nx and related @nx package versions from developer systems, CI images, internal registries, caches, and proxies, and reinstall only known-safe versions. The advisory indicates the malicious versions were removed from npm and that safe current versions should be used; Nx Console for VSCode should be upgraded to 18.66.0 or later. Revoke and rotate all potentially exposed secrets, including GitHub tokens, npm tokens, SSH keys, cloud credentials, and any other secrets present on impacted hosts or in environment variables. Review GitHub accounts and organizations for unauthorized repositories and workflow changes, and restore or rebuild compromised systems and CI runners from trusted baselines where necessary. Ensure package acquisition uses cleaned caches and trusted sources only.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
References
Frequently asked questions
- Is CVE-2025-10894 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-10894?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2025-10894.
- Is there a patch for CVE-2025-10894?
- Remove all affected Nx and related @nx package versions from developer systems, CI images, internal registries, caches, and proxies, and reinstall only known-safe versions. The advisory indicates the malicious versions were removed from npm and that safe current versions should be used; Nx Console for VSCode should be upgraded to 18.66.0 or later.
- How severe is CVE-2025-10894?
- CVE-2025-10894 has a CVSS v3.1 score of 9.6 (Critical) and an EPSS score of 0.56% (48th percentile) as of Oct 16, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.