Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeveloper runs nx graph on workstation
-
DeliveryAttacker lures developer to malicious website
-
ExploitAttacker JS fetches localhost Nx graph server endpoints
-
ExecutionBrowser delivers response body (CORS wildcard bypasses SOP)
-
PersistAttacker reads full project graph and workspace metadata
-
ImpactOptionally triggers /help endpoint to execute workspace-defined command on developer machine
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Dangerous method exposure prevention
|
| Exploitation Conditions | Exploitation requires all of the following to be true simultaneously: (1) the developer has actively invoked |
| Impact | The NVD CVSS of 5.9 (Medium) with vector AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N accurately reflects the constrained nature of exploitation: network-reachable via browser, but high complexity (requires the developer to have |
| Exploit ScenarioDerived | An attacker hosts a malicious webpage containing JavaScript that polls common localhost ports for the Nx graph server. A developer with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 26, 2026
Cross-origin information disclosure in the Nx monorepo graph server (versions 17.0.4 through 22.7.1) exposes the full project dependency graph and workspace metadata to any website a developer visits while nx graph is running locally. The server unconditionally broadcasts Access-Control-Allow-Origin: *, bypassing the browser Same-Origin Policy and allowing attacker-controlled JavaScript to silently read internal project structure. In rare cases, the /help endpoint - which executes a workspace-configured target command - creates a path to arbitrary command injection on the developer's machine. No public exploit or CISA KEV listing identified at time of analysis.
RemediationAI
Vendor-released patch: 22.7.2 (stable) and 23.0.0-beta.2 (beta). Upgrade by running npm install nx@22.7.2 or yarn add nx@22.7.2 in the workspace. The upstream fix is confirmed in PR #35494 (https://github.com/nrwl/nx/pull/35494), which removes the wildcard CORS header from the graph server. For teams unable to upgrade immediately, avoid running nx graph while browsing untrusted or unknown websites in the same browser session - since exploitation requires both the server to be running and the developer to visit an attacker-controlled page concurrently. Alternatively, use a dedicated browser profile without internet access when running nx graph. No functional side effects are expected from the patch since nx graph is consumed solely by the developer's own localhost browser session.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nx's nx graph command launches a local HTTP development server (implemented in packages/nx/src/command-line-graph/graph.ts) that serves an interactive project dependency visualization. Prior to the fix, this server emitted a wildcard CORS header (Access-Control-Allow-Origin: *) on every response. Under the browser Same-Origin Policy, cross-origin reads are blocked by default - this header overrides that protection, permitting any origin's JavaScript to issue fetch() calls to the localhost server and read the response body. The /help endpoint compounds the risk by invoking whatever command a workspace target defines as its help handler. CWE-749 (Exposed Dangerous Method or Function) is accurate: the server exposes an execution endpoint (/help) without origin-scoping, making it reachable from arbitrary third-party websites. The fix confirmed in PR #35494 removes the res.setHeader('Access-Control-Allow-Origin', '*') call entirely.
Know when Nx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
AV:N because attacker JS triggers cross-origin requests over the network; AC:H because nx graph must be actively running; UI:R because the developer must visit the malicious page; C:H for full project graph disclosure; I:L for limited /help injection path.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Nx is a monorepo solution for TypeScript and polyglot codebases. From 17.0.4 until 22.7.2 and 23.0.0-beta.2, the local HTTP server started by nx graph sent Access-Control-Allow-Origin: * on every response, letting any website a developer visited read the server's responses cross-origin - including the full project graph and the output of the /help endpoint, which runs a target's configured help command. The practical impact is typically cross-origin information disclosure, but can be arbitrary command injection in rare cases. This vulnerability is fixed in 22.7.2 and 23.0.0-beta.2.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c
Embedded malicious code in Nx Console (the editor extension for Nx and Lerna) version 18.95.0 turned a trusted developer
Shell command injection in Nx's @nx/maven and @nx/gradle project-graph analyzers lets an attacker who can write nx.json
Nx versions prior to V2512 contain an insufficient input validation flaw in the PDF export functionality that permits lo
Command injection in the Nx `@nx/docker` release pipeline (nx 21.4.0 through 22.7.7 and 23.0.0 through 23.1.0) lets an a
Path traversal in Nx's migration planner lets a hostile dependency write attacker-controlled bytes outside the temporary
EUVD-2026-39831
GHSA-g2r8-wvmj-jf5w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB