Regular Expression Denial of Service (ReDoS) vulnerability in shescape package (1.5.10 - 1.6.1) via insecure regex in escapeArgBash function

Regular Expression Denial of Service (ReDoS) vulnerability in shescape package (1.5.10 - 1.6.1) via insecure regex in escapeArgBash function

CVE-2022-25918 · HIGH Severity

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

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.

Learn more about our Web Application Penetration Testing UK.