CVE-2022-25918

Regular Expression Denial of Service (ReDoS)

Published Oct 27, 2022 CVSS 3.1 · 5.3 Medium EPSS 1.6% KEV · Not listed
Description
The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-7081 The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.
Github GHSA Github GHSA GHSA-cr84-xvw4-qx3c Inefficient Regular Expression Complexity in shescape
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
May 5, 2025, 6:24 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
Oct 27, 2022, 10:15 AM
Modified
Jun 17, 2026, 4:34 AM