{
  "schema_version": "1.6.0",
  "id": "ACVE-2026-0405",
  "aliases": [
    "CVE-2025-10894",
    "GHSA-cxm3-wv7p-598c"
  ],
  "related": [
    "MAL-2025-41436",
    "MAL-2025-41437",
    "MAL-2025-41438",
    "MAL-2025-41439",
    "MAL-2025-41441",
    "MAL-2025-41442",
    "MAL-2025-41443"
  ],
  "published": "2025-08-27T00:00:00Z",
  "firstReported": {
    "date": "2025-08-27",
    "url": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c",
    "publisher": "Nx (GitHub advisory)"
  },
  "modified": "2026-09-25T00:00:00Z",
  "summary": "Secrets are collected and exfiltrated to the victim's own GitHub account when a listed nx or @nx/* version is installed: its postinstall drives an installed AI CLI with permission-bypass flags.",
  "details": "## What\n\nA 2025 event. The listed versions were published between 6:32 PM and 8:37 PM EDT on 2025-08-26 and removed by 6:20 AM the next day. The postinstall script collected credentials and pushed them to `s1ngularity-repository` repositories in the victim's GitHub account. Wiz reports it invoked installed Claude, Gemini and Q CLIs with `--dangerously-skip-permissions`, `--yolo` and `--trust-all-tools` to find secrets. On 2025-08-28 and 08-29 stolen tokens were used to make private repositories public.\n\n## Detection\n\n`acve lock` does not inventory npm dependency trees, so this record has no matcher: run `npm ls nx` and check for `/tmp/inventory.txt`.\n\n## Fix\n\nInstall a clean release, clear package-manager caches and rotate GitHub, npm and cloud credentials.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "nx",
        "purl": "pkg:npm/nx"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "20.9.0"
            },
            {
              "last_affected": "20.9.0"
            },
            {
              "introduced": "20.10.0"
            },
            {
              "last_affected": "20.10.0"
            },
            {
              "introduced": "20.11.0"
            },
            {
              "last_affected": "20.11.0"
            },
            {
              "introduced": "20.12.0"
            },
            {
              "last_affected": "20.12.0"
            },
            {
              "introduced": "21.5.0"
            },
            {
              "last_affected": "21.5.0"
            },
            {
              "introduced": "21.6.0"
            },
            {
              "last_affected": "21.6.0"
            },
            {
              "introduced": "21.7.0"
            },
            {
              "last_affected": "21.7.0"
            },
            {
              "introduced": "21.8.0"
            },
            {
              "last_affected": "21.8.0"
            }
          ]
        }
      ],
      "versions": [
        "20.9.0",
        "20.10.0",
        "20.11.0",
        "20.12.0",
        "21.5.0",
        "21.6.0",
        "21.7.0",
        "21.8.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/devkit",
        "purl": "pkg:npm/@nx/devkit"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "20.9.0"
            },
            {
              "last_affected": "20.9.0"
            },
            {
              "introduced": "21.5.0"
            },
            {
              "last_affected": "21.5.0"
            }
          ]
        }
      ],
      "versions": [
        "20.9.0",
        "21.5.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/js",
        "purl": "pkg:npm/@nx/js"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "20.9.0"
            },
            {
              "last_affected": "20.9.0"
            },
            {
              "introduced": "21.5.0"
            },
            {
              "last_affected": "21.5.0"
            }
          ]
        }
      ],
      "versions": [
        "20.9.0",
        "21.5.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/workspace",
        "purl": "pkg:npm/@nx/workspace"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "20.9.0"
            },
            {
              "last_affected": "20.9.0"
            },
            {
              "introduced": "21.5.0"
            },
            {
              "last_affected": "21.5.0"
            }
          ]
        }
      ],
      "versions": [
        "20.9.0",
        "21.5.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/node",
        "purl": "pkg:npm/@nx/node"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "20.9.0"
            },
            {
              "last_affected": "20.9.0"
            },
            {
              "introduced": "21.5.0"
            },
            {
              "last_affected": "21.5.0"
            }
          ]
        }
      ],
      "versions": [
        "20.9.0",
        "21.5.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/eslint",
        "purl": "pkg:npm/@nx/eslint"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "21.5.0"
            },
            {
              "last_affected": "21.5.0"
            }
          ]
        }
      ],
      "versions": [
        "21.5.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/key",
        "purl": "pkg:npm/@nx/key"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "3.2.0"
            },
            {
              "last_affected": "3.2.0"
            }
          ]
        }
      ],
      "versions": [
        "3.2.0"
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "@nx/enterprise-cloud",
        "purl": "pkg:npm/@nx/enterprise-cloud"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "3.2.0"
            },
            {
              "last_affected": "3.2.0"
            }
          ]
        }
      ],
      "versions": [
        "3.2.0"
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-10894"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nrwl/nx/pull/32458"
    },
    {
      "type": "REPORT",
      "url": "https://www.wiz.io/blog/s1ngularity-supply-chain-attack"
    },
    {
      "type": "REPORT",
      "url": "https://blog.gitguardian.com/the-nx-s1ngularity-attack-inside-the-credential-leak/"
    }
  ],
  "database_specific": {
    "severity": "CRITICAL",
    "acve": {
      "specVersion": 1,
      "status": "candidate",
      "kind": "code",
      "vulnClasses": [
        "supply-chain",
        "credential-theft"
      ],
      "cwe": [
        "CWE-506"
      ],
      "exposure": {
        "harness": {
          "value": "Any machine or CI job that installed a listed nx or @nx/* version and had an AI CLI (Claude, Gemini or Q) installed for the payload to drive",
          "any": true,
          "status": "confirmed",
          "source": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c"
        },
        "model": {
          "value": "The default model of whichever installed CLI the payload invoked (Claude, Gemini or Q)",
          "any": false,
          "status": "detected",
          "source": "https://www.wiz.io/blog/s1ngularity-supply-chain-attack"
        },
        "goal": {
          "value": "A file-search agent task: search the filesystem, list configuration and environment-definition files and write the inventory of paths to /tmp/inventory.txt using available tools",
          "stated": true,
          "status": "confirmed",
          "source": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c"
        },
        "tools": {
          "value": "The postinstall telemetry script; the installed AI CLI invoked with --dangerously-skip-permissions, --yolo and --trust-all-tools; /tmp/inventory.txt; a GitHub repository named s1ngularity-repository in the victim account",
          "status": "confirmed",
          "source": "https://www.wiz.io/blog/s1ngularity-supply-chain-attack"
        },
        "approval": {
          "value": "The payload passed the CLI its own permission-bypass flags (--dangerously-skip-permissions, --yolo, --trust-all-tools), so the agent acted without prompting regardless of the user's settings",
          "mode": "auto-approve",
          "status": "confirmed",
          "source": "https://www.wiz.io/blog/s1ngularity-supply-chain-attack"
        },
        "inputControl": "package-publisher",
        "agentAction": "The postinstall drives the installed AI CLI to inventory and collect credential files, then exfiltrates them to a GitHub repository under the victim's account.",
        "harm": "credential-theft",
        "divergence": "instruction-followed",
        "reach": {
          "value": "The machine's credential and wallet files, and GitHub",
          "kinds": [
            "api-keys",
            "cloud-credentials",
            "wallet",
            "private-repositories"
          ],
          "status": "confirmed",
          "source": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c"
        },
        "condition": {
          "value": "When a poisoned nx version is installed on a machine with an AI CLI present",
          "status": "confirmed",
          "source": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c"
        }
      },
      "occurrence": {
        "basis": "real-use",
        "reportedBy": "vendor",
        "responses": [
          {
            "party": "Nx",
            "status": "fixed",
            "source": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c"
          }
        ]
      },
      "exploitation": {
        "status": "exploited-itw",
        "checkedAt": "2026-09-21T00:00:00Z",
        "sources": [
          {
            "url": "https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c",
            "type": "vendor"
          },
          {
            "url": "https://www.wiz.io/blog/s1ngularity-supply-chain-attack",
            "type": "dfir"
          },
          {
            "url": "https://blog.gitguardian.com/the-nx-s1ngularity-attack-inside-the-credential-leak/",
            "type": "dfir"
          }
        ],
        "kev": {
          "listed": false
        },
        "first_seen": "2025-08-26",
        "last_seen": "2025-08-29",
        "victims": {
          "range": "GitGuardian: 1,079 exfiltration repositories containing at least one secret, 2,349 distinct secrets. Wiz, phase 2: over 400 users or organisations and over 5,500 private repositories made public.",
          "sectors": [
            "software"
          ],
          "evidence": "Counts are of GitHub repositories and secrets as each source defines them, not of machines."
        }
      },
      "taxonomy": {
        "owasp_asi": [
          "ASI04",
          "ASI03"
        ],
        "atlas": [
          "AML.T0011.001",
          "AML.T0103",
          "AML.T0055"
        ]
      },
      "cveBoundary": "supply-chain",
      "fix": {
        "summary": "Replace any listed version with a clean release and rotate credentials.",
        "actions": [
          {
            "type": "upgrade",
            "target": "npm:nx",
            "to": "21.5.1",
            "why": "First stable nx release published to npm after the malicious versions were removed.",
            "owner": "operator"
          },
          {
            "type": "reconfigure",
            "target": "nx.release",
            "to": "the fix in nrwl/nx pull request 32458",
            "why": "Shipped by Nx: its advisory GHSA-cxm3-wv7p-598c marks the issue fixed.",
            "owner": "tool-provider"
          },
          {
            "type": "reconfigure",
            "target": "harness.cli.permissionBypassFlags",
            "to": "can be switched off in the user's settings",
            "why": "Recommended: the payload passed each CLI its own bypass flag, so the agent ran unprompted whatever the user's settings.",
            "owner": "harness-vendor"
          }
        ]
      },
      "claims": [
        {
          "kind": "identifier",
          "statement": "Identifier CVE-2025-10894",
          "value": "CVE-2025-10894",
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-10894",
          "result": "match",
          "observed": "CVE.org: PUBLISHED",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "identifier",
          "statement": "Identifier GHSA-cxm3-wv7p-598c",
          "value": "GHSA-cxm3-wv7p-598c",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "result": "match",
          "observed": "OSV: record found",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 20.9.0",
          "value": "20.9.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 20.10.0",
          "value": "20.10.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 20.11.0",
          "value": "20.11.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 20.12.0",
          "value": "20.12.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected versions include 21.5.0",
          "value": "21.5.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 21.6.0",
          "value": "21.6.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 21.7.0",
          "value": "21.7.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected through 21.8.0",
          "value": "21.8.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected versions include 3.2.0",
          "value": "3.2.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "method": "machine",
          "result": "match",
          "observed": "OSV: affected-version 3.2.0; affected-version 5.0.7; CVE.org structured: affected-version 20.12.0; affected-version 21.8.0; affected-version 21.7.0; affected-version 20.11.0; affected-version 21.6.0; affected-version 20.10.0; affected-version 20.9.0; affected-version 21.5.0; affected-version 3.2.0",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "fixed-version",
          "statement": "Upgrade target 21.5.1",
          "value": "21.5.1",
          "status": "confirmed",
          "source": "https://registry.npmjs.org/nx/21.5.1",
          "result": "match",
          "observed": "npm: version exists",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "severity",
          "statement": "Severity CRITICAL (CVSS 9.6); matches CNA",
          "value": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-10894",
          "observed": "CNA: CRITICAL 9.6 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H)",
          "result": "match",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected versions include 20.9.0, 20.10.0, 20.11.0, 20.12.0, 21.5.0, 21.6.0, 21.7.0, 21.8.0",
          "value": "20.9.0, 20.10.0, 20.11.0, 20.12.0, 21.5.0, 21.6.0, 21.7.0, 21.8.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; affected-version 20.10.0; affected-version 21.6.0; affected-version 20.11.0; affected-version 21.7.0; affected-version 21.8.0; affected-version 20.12.0; CVE.org structured: affected-version 20.12.0; affected-version 21.5.0; affected-version 3.2.0",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected versions include 20.9.0, 21.5.0",
          "value": "20.9.0, 21.5.0",
          "status": "confirmed",
          "source": "https://api.osv.dev/v1/vulns/GHSA-cxm3-wv7p-598c",
          "result": "match",
          "observed": "OSV: affected-version 21.5.0; affected-version 20.9.0; CVE.org structured: affected-version 20.12.0; affected-version 21.8.0; affected-version 21.7.0; affected-version 20.11.0; affected-version 21.6.0; affected-version 20.10.0; affected-version 21.5.0",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:53Z"
        },
        {
          "kind": "installable",
          "statement": "Latest affected version 21.8.0 is no longer on npm",
          "value": "21.8.0",
          "status": "detected",
          "source": "https://registry.npmjs.org/nx/21.8.0",
          "result": "unavailable",
          "observed": "npm: version does not exist",
          "method": "machine",
          "checkedAt": "2026-09-22T04:27:43Z"
        },
        {
          "kind": "installable",
          "statement": "Latest affected version 21.5.0 is no longer on npm",
          "value": "21.5.0",
          "status": "detected",
          "source": "https://registry.npmjs.org/@nx%2Feslint/21.5.0",
          "result": "unavailable",
          "observed": "npm: version does not exist",
          "method": "machine",
          "checkedAt": "2026-09-22T04:27:43Z"
        },
        {
          "kind": "installable",
          "statement": "Latest affected version 3.2.0 is no longer on npm",
          "value": "3.2.0",
          "status": "detected",
          "source": "https://registry.npmjs.org/@nx%2Fenterprise-cloud/3.2.0",
          "result": "unavailable",
          "observed": "npm: version does not exist",
          "method": "machine",
          "checkedAt": "2026-09-22T04:27:43Z"
        }
      ],
      "reproducibility": {
        "status": "not-reproducible",
        "axesComplete": true,
        "componentsObtainable": false,
        "triggerPublished": false,
        "observableStated": true,
        "demonstrated": "vendor-confirmed",
        "missing": [
          "vulnerable components are not confirmed obtainable",
          "trigger not published"
        ]
      },
      "severityBasis": "cvss"
    }
  }
}
