Shescape: Path disclosure on Unix with Zsh
Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, this impacts users of Shescape on Unix systems that explicitly configure shell to Zsh, or true when the default shell is Zsh, using the escape and escapeAll. The Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST exacerbate the problem. In certain case, an attacker can leverage home directory expansion and extended glob syntax to obtain lists of files and directories on the system. Depending on what the command does, this may be used to leak more information. This issue is fixed in versions 2.1.14 and 3.0.1.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-73412
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:34 UTC · Revision 1
Source evidence
Shescape: Path disclosure on Unix with Zsh
core-osv · Original sourcePublished 12 Aug 2026, 19:38 UTC
Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, this impacts users of Shescape on Unix systems that explicitly configure shell to Zsh, or true when the default shell is Zsh, using the escape and escapeAll. The Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST exacerbate the problem. In certain case, an attacker can leverage home directory expansion and extended glob syntax to obtain lists of files and directories on the system. Depending on what the command does, this may be used to leak more information. This issue is fixed in versions 2.1.14 and 3.0.1.
osv:CVE-2026-73412
Complete source record
{
"id": "9ad1a026cf94a9d8fa66d4b43f69cb656e37633ab5c0119c63057dadb5436365",
"url": "https://osv.dev/vulnerability/CVE-2026-73412",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Shescape: Path disclosure on Unix with Zsh",
"summary": "Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, this impacts users of Shescape on Unix systems that explicitly configure shell to Zsh, or true when the default shell is Zsh, using the escape and escapeAll. The Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST exacerbate the problem. In certain case, an attacker can leverage home directory expansion and extended glob syntax to obtain lists of files and directories on the system. Depending on what the command does, this may be used to leak more information. This issue is fixed in versions 2.1.14 and 3.0.1.",
"evidence": "osv:CVE-2026-73412",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-73412",
"aliases": [
"CVE-2026-73412",
"GHSA-6v4m-fw66-8r4x"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ericcornelissen/shescape",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ae0faa7bd31331aec3f21c623ee69a50e6663454"
},
{
"introduced": "68b9e590b7527fd9dbde91c450055059423942f6"
},
{
"fixed": "37303332910d456bf07bbf942c3ed98be156f365"
},
{
"fixed": "43d70b59d09bbe5c3fd02ef08b3a123e977ed9de"
},
{
"fixed": "b4b34c394e7f9da2775bb75381066b9a228c425f"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.1.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "43d70b59d09bbe5c3fd02ef08b3a123e977ed9de"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "b4b34c394e7f9da2775bb75381066b9a228c425f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ae0faa7bd31331aec3f21c623ee69a50e6663454"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.1.14"
},
{
"range": [
{
"fixed": "37303332910d456bf07bbf942c3ed98be156f365"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v3.0.1"
}
]
}
}
],
"versions": [
"v2.1.13",
"v3.0.0",
"v2.1.12",
"v2.1.11",
"v2.1.10",
"v2.1.9",
"v2.1.8",
"v2.1.7",
"v2.1.6",
"v2.1.5",
"v2.1.4",
"v2.1.3",
"v2.1.2",
"v2.1.1",
"v2.1.0",
"v2.0.2",
"v2.0.1",
"v2.0.0",
"v1.7.4",
"v1.7.3",
"v1.7.2",
"v1.7.1",
"v1.7.0",
"v1.6.7",
"v1.6.6",
"v1.6.5",
"v1.6.4",
"v1.6.3",
"v1.6.2",
"v1.6.1",
"v1.6.0",
"v1.5.10",
"v1.5.9",
"v1.5.8",
"v1.5.7",
"v1.5.6",
"v1.5.5",
"v1.5.4",
"v1.5.3",
"v1.5.2",
"v1.5.1",
"v1.5.0",
"v1.4.0",
"v1.3.3",
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.1",
"v1.2.0",
"v1.1.3",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.0",
"v0.4.1",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"v0.2.1",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-73412.json"
}
}
],
"modified": "2026-10-28T02:30:52.826256458Z",
"provider": "osv",
"references": [
"https://github.com/ericcornelissen/shescape/releases/tag/v2.1.14",
"https://github.com/ericcornelissen/shescape/releases/tag/v3.0.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73412.json",
"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-6v4m-fw66-8r4x",
"https://nvd.nist.gov/vuln/detail/CVE-2026-73412",
"https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de",
"https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f",
"https://github.com/ericcornelissen/shescape/pull/2649",
"https://github.com/ericcornelissen/shescape/pull/2651"
],
"provider_metadata": {
"cwe_ids": [
"CWE-155",
"CWE-78"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73412.json"
}
},
"related_cves": [
{
"value": "CVE-2026-73412",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521826,
"published_at": "2026-08-12T19:38:41.86+00:00"
}