Advisory

GHSA-v6h2-p8h4-qcjw

Also known as: CVE-2025-5889

Summary

brace-expansion Regular Expression Denial of Service vulnerability

Details

A vulnerability was found in juliangruber brace-expansion up to 1.1.11/2.0.1/3.0.0/4.0.0. It has been rated as problematic. Affected by this issue is the function expand of the file index.js. The manipulation leads to inefficient regular expression complexity. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 1.1.12, 2.0.2, 3.0.1 and 4.0.1 is able to address this issue. The name of the patch is a5b98a4f30d7813266b221435e1eaaf25a1b0ac5. It is recommended to upgrade the affected component.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-06-09 21:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

brace-expansion

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.0.2 (semver)

Fixed versions

2.0.2

Fix

brace-expansion

npm · All systems

Affected

  • introduced 1.0.0, fixed 1.1.12 (semver)

Fixed versions

1.1.12

Fix

brace-expansion

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.0.1 (semver)

Fixed versions

3.0.1

Fix

brace-expansion

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.0.1 (semver)

Fixed versions

4.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences