CVE-2022-25918 json
Regular Expression Denial of Service (ReDoS)
published 4y ago modified 4mo ago also GHSA-cr84-xvw4-qx3c , EUVD-2022-7081
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm shescape 1.6.1
- n/a shescape 1.6.1
Is CVE-2022-25918 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.63% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | shescape | >=1.5.10, <1.6.1 |
1.6.1 |
Affected products
- n/a shescape
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-SHESCAPE-3061108
web, exploit, patch, third-party-advisory
-
github.com
/ericcornelissen/shescape/blob/main/src/unix.js%23L52
web, broken-link
-
github.com
/ericcornelissen/shescape/releases/tag/v1.6.1
web, release-notes, third-party-advisory
-
github.com
/ericcornelissen/shescape/security/advisories/GHSA-cr84-xvw4-qx3c
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-25918
advisory
-
github.com
/ericcornelissen/shescape
package
Sources
- CVE List CVE-2022-25918
- GitHub Advisory GHSA-cr84-xvw4-qx3c
- NVD CVE-2022-25918
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.