Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-54753 EUVD-2026-39831GHSA-g2r8-wvmj-jf5w

Nx: `nx graph` dev server permissive CORS policy

Published Jun 26, 2026 · Updated Jun 26, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
nrwl nx >= 17.0.4, < 22.7.2, >= 23.0.0-beta.0, < 23.0.0-beta.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nx >= 17.0.4, < 22.7.2 22.7.2 GHSA-g2r8-wvmj-jf5w
npm nx >= 23.0.0-beta.0, < 23.0.0-beta.2 23.0.0-beta.2 GHSA-g2r8-wvmj-jf5w

References