CVE-2025-26042: Powershell Double Quote Injection Cve 2025 26042

A regular expression intended to filter input (CVE-2025-26042) was reported vulnerable to ReDoS. Additionally, relying on regex instead of safe escaping masks an underlying OS Command Injection risk where input is passed into a double-quoted string in PowerShell. Fix by escaping single quotes (`input.replaceAll("'", "''")`) and wrapping the variable in singl

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2025-26042-powershell-double-quote-injection-cve-2025-26042 --engine opengrep

Description

A regular expression intended to filter input (CVE-2025-26042) was reported vulnerable to ReDoS. Additionally, relying on regex instead of safe escaping masks an underlying OS Command Injection risk where input is passed into a double-quoted string in PowerShell. Fix by escaping single quotes (`input.replaceAll("'", "''")`) and wrapping the variable in singl