Skip to main content
EPSS 0.6%top 54%

CVE-2026-73411: CWE-116: Improper Encoding or Escaping of Output in ericcornelissen shescape

0
Medium
VulnerabilityCVE-2026-73411cvecve-2026-73411cwe-116cwe-200
Published: 08/12/2026 (08/12/2026, 19:33:02 UTC)
Source: CVE Database V5
Vendor/Project: ericcornelissen
Product: shescape

Description

Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, getEscapeFunction in src/internal/unix/dash.js fails to escape ~ after : or = when applications use the escape or escapeAll APIs on Unix with shell set to dash, or with shell set to true when Dash is the default, and interpolate the result into an assignment prefixed to a command. An attacker who controls the input can supply a value such as :~ to disclose the home-directory path and may change the location on which the command operates. This issue is fixed in versions 2.1.14 and 3.0.1.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

ericcornelissen

shescape

Affected versions
<2.1.14>=3.0.0 <3.0.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 13:14:25 UTC

Technical Analysis

The vulnerability in shescape occurs in the getEscapeFunction within src/internal/unix/dash.js, where the tilde (~) character is not properly escaped after ':' or '=' when using the escape or escapeAll APIs on Unix systems with the shell set to dash or when shell is true and dash is the default. This improper escaping can lead to information disclosure of the home directory path and potentially change the command execution context. Versions prior to 2.1.14 and 3.0.1 are affected. The flaw is classified under CWE-116 (Improper Encoding or Escaping of Output) and CWE-200 (Information Exposure).

Potential Impact

An attacker who can control the input to the vulnerable APIs may supply crafted values such as ':~' to disclose the home directory path, which is sensitive information. Additionally, the attacker may influence the location on which a shell command operates, potentially leading to unintended command behavior or information exposure. There is no indication of privilege escalation or remote code execution from the provided data.

Mitigation Recommendations

The vulnerability is fixed in shescape versions 2.1.14 and 3.0.1. Users should upgrade to these or later versions to remediate the issue. No other mitigation or temporary workaround is indicated in the available data. Patch status is not explicitly confirmed in the vendor advisory, but the description clearly states the fix versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-12T14:32:11.795Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a7cd127bf8831d53911d0fa

Added to database: 08/12/2026, 20:01:43 UTC

Last enriched: 08/13/2026, 13:14:25 UTC

Last updated: 09/26/2026, 13:47:48 UTC

Views: 46

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses