Skip to content

@nx/js: transitive dependency [email protected] has known vulnerability #35025

@robert-sidzinka

Description

@robert-sidzinka

Description

@nx/js pulls in [email protected] as a transitive dependency through the chain:

[email protected] has a known vulnerability (see GHSA-48c2-rrv3-qjmp — stack overflow via deeply nested YAML collections). The fix is available in [email protected].

Steps to Reproduce

  1. Create a project using @nx/[email protected]
  2. Run npm audit
  3. Observe [email protected] flagged as vulnerable via the babel-plugin-macros → cosmiconfig chain

Expected Behavior

@nx/js should depend on (or pin) versions of transitive dependencies that do not have known vulnerabilities. Updating cosmiconfig or adding an override for yaml >=1.10.3 in @nx/js would resolve this.

Current Workaround

Consumers can override the resolution in their own package-lock.json to force [email protected].

Environment

  • Nx version: 22.6.1
  • Node version: v22
  • Package manager: npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions