Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-32094 EUVD-2026-11333GHSA-9jfh-9xrq-4vwm

Shescape escape() leaves bracket glob expansion active on Bash, BusyBox, and Dash

Published Mar 11, 2026 · Updated Mar 12, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ericcornelissen shescape < 2.1.10 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm shescape < 2.1.10 2.1.10 GHSA-9jfh-9xrq-4vwm

References