# CVE-2026-32094: Shescape escape() leaves bracket glob expansion active on Bash, BusyBox, and Dash

> Attackers can exploit unescaped bracket globs in Shescape to expand arguments into multiple filesystem matches, potentially leading to command injection or data exposure.

- **Severity:** Medium 6.9 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Mar 2026
- **Updated:** 12 Mar 2026
- **Also known as:** GHSA-9jfh-9xrq-4vwm

## What is CVE-2026-32094?

CVE-2026-32094 is a medium-severity command injection vulnerability in ericcornelissen shescape, published on 11 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Shescape is a simple shell escape library for JavaScript. Prior to 2.1.10, Shescape#escape() does not escape square-bracket glob syntax for Bash, BusyBox sh, and Dash. Applications that interpolate the return value directly into a shell command string can cause an attacker-controlled value like secret[12] to expand into multiple filesystem matches instead of a single literal argument, turning one argument into multiple trusted-pathname matches. This vulnerability is fixed in 2.1.10.

Weakness: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)

## Which versions are affected by CVE-2026-32094?

2 open source packages ship an affected version, including shescape. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `shescape` | npm | All versions | 2.1.10 |
| `shescape` | npm | All versions | 2.1.10 |

Products: Shescape Project Shescape.

## How do I fix CVE-2026-32094?

Upgrade shescape to 2.1.10 or later.

## Is CVE-2026-32094 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32094 exists.

## Other vulnerabilities in ericcornelissen shescape

- [CVE-2022-31180](https://insights.sbomify.com/CVE-2022-31180/): Insufficient escaping of whitespace in shescape (critical 9.8)
- [CVE-2022-31179](https://insights.sbomify.com/CVE-2022-31179/): Insufficient escaping of line feeds for CMD in shescape (high 8.1)
- [CVE-2023-40185](https://insights.sbomify.com/CVE-2023-40185/): Shescape on Windows escaping may be bypassed in threaded context (medium 6.5)
- [CVE-2021-21384](https://insights.sbomify.com/CVE-2021-21384/): Null characters not escaped in shescape (medium 6.3)
- [CVE-2022-24725](https://insights.sbomify.com/CVE-2022-24725/): Exposure of home directory through shescape on Unix with Bash (medium 6.2)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-32094 and fix it if it is affected.

What it is: CVE-2026-32094 is a medium-severity command injection vulnerability in ericcornelissen shescape, published on 11 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32094 exists.

Affected packages and fixed versions:
- shescape (npm): affected all versions; fixed in 2.1.10
- shescape (npm): affected all versions; fixed in 2.1.10

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-32094/ (Markdown: https://insights.sbomify.com/CVE-2026-32094/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-32094
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-32094
- OSV: https://osv.dev/vulnerability/CVE-2026-32094

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-32094/
Summaries are generated and may contain mistakes; the official description above is the record.
