Skip to main content

Nx CVE-2026-54753

| EUVDEUVD-2026-39831 MEDIUM
Exposed Dangerous Method or Function (CWE-749)
2026-06-26 GitHub_M GHSA-g2r8-wvmj-jf5w
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Developer runs nx graph on workstation
  2. Delivery
    Attacker lures developer to malicious website
  3. Exploit
    Attacker JS fetches localhost Nx graph server endpoints
  4. Execution
    Browser delivers response body (CORS wildcard bypasses SOP)
  5. Persist
    Attacker reads full project graph and workspace metadata
  6. Impact
    Optionally 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 nx graph on their workstation, starting the local HTTP server - this is a development-time command absent from production, CI pipelines, and deployed infrastructure; (2) the developer visits an attacker-controlled or compromised website in the same browser session while nx graph is running; and (3) the attacker knows or can enumerate the local port the Nx graph server binds to. The command injection path via /help additionally requires the workspace's target help command to be itself vulnerable to injection - described by the vendor as a rare condition dependent on non-default workspace configuration. Exploitation is categorically impossible against production systems or any environment where nx graph is not running. The CVSS UI:R and AC:H metrics confirm these constraints: user interaction is mandatory, and the concurrent-session requirement elevates attack complexity.

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 nx graph running simultaneously with a browser visit to an attacker-controlled page) and mandatory user interaction. Real-world organizational risk is substantially bounded by the developer-tool context - nx graph is a workstation-only command that is never present in production or CI environments. The C:H rating is justified for project graph contents (internal architecture, dependency maps, target configurations), but the organizational sensitivity of this data varies. The I:L integrity signal maps to the rare /help command injection path, which the vendor explicitly qualifies as uncommon. No EPSS data was provided; without it, exploitation probability cannot be quantified. No KEV listing and no POC code observed, suggesting opportunistic mass exploitation is not occurring. SSVC assessment: exploitation is possible but not automatable at scale - it requires targeted social engineering of a specific developer during an active nx graph session.

Exploit ScenarioDerived

An attacker hosts a malicious webpage containing JavaScript that polls common localhost ports for the Nx graph server. A developer with nx graph running visits the page, and the attacker's script issues cross-origin fetch() calls to http://localhost:<port>/ - the wildcard CORS header causes the browser to hand over the full response body, leaking the project graph including internal package names, dependency relationships, and target configurations. In a rare secondary scenario, if the workspace defines a help command that unsafely interpolates arguments, the attacker's page can trigger the /help endpoint to execute arbitrary commands on the developer's machine. No public exploit code identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

NX 17.0.4, < 22.7.2
NX 23.0.0-beta.0, < 23.0.0-beta.2

Affected Packages

npm nx fix: 22.7.2, 23.0.0-beta.2
euvd nx_23_0_0_beta_0 fix: 23.0.0-beta.2

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

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Jun 26, 2026 - 20:02 EUVD

DescriptionCVE.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

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Medium
widely adopted monorepo toolchain in enterprise TypeScript/JavaScript teams
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy