# brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups

Advisory record · `GHSA-3jxr-9vmj-r5cp`

- **Identifiers:** `GHSA-3jxr-9vmj-r5cp` · `CVE-2026-13149`
- **State:** Confirmed
- **Severity:** CVSS 7.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html) · [CWE-407](https://cwe.mitre.org/data/definitions/407.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 20 Jul 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 20 Jul 2026, 20:51 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `brace-expansion` (npm): affected `>=3.0.0, <5.0.7 || <1.1.16 || >=2.0.0, <2.1.2`; fixed in `5.0.7`, `1.1.16`, `2.1.2`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.7 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:U/V:D/RE:M/U:Amber`, from CNA (seal)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0036, the 30th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 20 Jul 2026. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-3jxr-9vmj-r5cp](https://github.com/advisories/GHSA-3jxr-9vmj-r5cp)
- [OSV: GHSA-3jxr-9vmj-r5cp](https://osv.dev/vulnerability/GHSA-3jxr-9vmj-r5cp)
- <https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-3jxr-9vmj-r5cp>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-13149>
- <https://github.com/juliangruber/brace-expansion/pull/122>
- <https://github.com/juliangruber/brace-expansion/pull/123>
- <https://github.com/juliangruber/brace-expansion/commit/835d6be91201122d9adffb0c0c8c094189ace265>
- <https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754>
- <https://github.com/juliangruber/brace-expansion/commit/d74e63030c012e3b7ae81657b8d665619cd51b95>
- <https://github.com/juliangruber/brace-expansion>
- <https://github.com/juliangruber/brace-expansion/releases/tag/v1.1.16>
- <https://github.com/juliangruber/brace-expansion/releases/tag/v2.1.2>
- <https://github.com/juliangruber/brace-expansion/releases/tag/v5.0.7>
- <https://www.npmjs.com/package/brace-expansion>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-3jxr-9vmj-r5cp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3jxr-9vmj-r5cp/>. Everything for agents: <https://agentprime.io/llms.txt>.
