npm package

braces 2.2.1 vulnerabilities, and what to upgrade to

braces 2.2.1 has 3 known vulnerabilities (2 rated high or critical); 3.0.3 fixes 2 of them, and 1 has no fixed version yet. 3.0.3 has 1 known vulnerability of its own, and so does every newer release we checked.

npm (opens in a new tab) describes it as “Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.”

Known vulnerabilities
3
2 rated high or critical
Released
May 31, 2017
Latest is 3.0.3
Downloads last week
65
Under 1% of braces downloads
Licence
MIT
Pulls in
82 packages
Resolved by deps.dev

What to upgrade to

Every newer release we checked still has known vulnerabilities. The fewer, the better.

  • 2.3.2

    Newest 2.x release. Released Apr 8, 2018.

    2 known vulnerabilities, worst rated warning
  • 3.0.3

    Fixes 2 of the 3 known vulnerabilities and the latest release. Released May 21, 2024.

    1 known vulnerability, worst rated warning

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for braces 2.2.1

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2024-4068 on OSV.dev (opens in a new tab)GHSA-grv7-fg5c-xmjgEPSS: top 27%

    Uncontrolled resource consumption in braces

    Fixed in 3.0.3. Published May 14, 2024.

  2. LowCVE-2018-1109 on OSV.dev (opens in a new tab)GHSA-cwfw-4gq5-mrqxEPSS: top 29%

    Regular Expression Denial of Service (ReDoS) in braces

    Fixed in 2.3.1. Published Jan 6, 2022.

  3. CriticalCVE-2026-93687 on OSV.dev (opens in a new tab)GHSA-vfj7-8cjw-p6xmEPSS: top 46%

    braces vulnerable to stack-exhaustion denial of service through deeply nested patterns

    No fixed version listed yet. Published Sep 18, 2026.

Who is still on a vulnerable braces

100% of last week’s 169.1M braces downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is braces the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly braces 2.2.1, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.