Skip to content

[BUG] v10 bundled dependency brace-expansion@2.0.1 is vulnerable to ReDoS #8366

Open
@mhassan1

Description

@mhassan1

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When I run npm audit in a project containing npm@10, I see:

# npm audit report

brace-expansion  2.0.0 - 2.0.1
brace-expansion Regular Expression Denial of Service vulnerability - https://github.com/advisories/GHSA-v6h2-p8h4-qcjw
fix available via `npm audit fix`
node_modules/npm/node_modules/brace-expansion

1 low severity vulnerability

To address all issues, run:
  npm audit fix

When I run npm audit fix, I see:

npm warn audit fix brace-expansion@2.0.1 node_modules/npm/node_modules/brace-expansion
npm warn audit fix brace-expansion@2.0.1 is a bundled dependency of
npm warn audit fix brace-expansion@2.0.1 npm@10.9.2 at node_modules/npm
npm warn audit fix brace-expansion@2.0.1 It cannot be fixed automatically.
npm warn audit fix brace-expansion@2.0.1 Check for updates to the npm package.

Expected Behavior

No npm audit findings in npm

Steps To Reproduce

  1. npm install npm@10
  2. npm audit

Environment

  • npm: 10.9.2
  • Node.js: 22.15.1
  • OS Name: OS X
  • System Model Name: Macbook Pro
  • npm config: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions