CVE-2022-25918

published 27 Oct 2022 · updated 5 May 2025

Regular Expression Denial of Service (ReDoS)

5.3MediumCVSS 5.3EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 1.6.1 and unspecified.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<1.6.1, >=1.5.10 <unspecified1.6.1, unspecified

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-25918 severity on Zeptric[![CVE-2022-25918](https://zeptric.io/badge/cve/CVE-2022-25918.svg)](https://zeptric.io/cve/CVE-2022-25918)