Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
CVE-2022-25918 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 5, 2025Exploitation: PocAutomatable: YesTechnical Impact: Partial
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52 | CVE | Broken Link |
| https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9 | CVE | PatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1 | CVE | Release NotesThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 | CVE | ExploitPatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52 | [email protected] | Broken Link |
| https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9 | [email protected] | PatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1 | [email protected] | Release NotesThird Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-1333 | Inefficient Regular Expression Complexity | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| shescape project shescape | 1.5.10 1.6.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 5, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 8, 2023 | CWE Remap | [email protected] |
| Oct 28, 2022 | Initial Analysis | [email protected] |