CVE-2022-25918 MEDIUM

CVE-2022-25918: Regular Expression Denial of Service (ReDoS)

Vendor N/A
Product shescape
Published October 27, 2022
Last update May 5, 2025

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 27, 2022 CVE published
May 5, 2025 Record updated