CVE-2026-59894: Unescaped Backslash Before Quote Replace

Quotes are escaped without escaping backslashes first. If the input contains a backslash preceding a quote, the backslash will escape the escape character itself, leaving the quote unescaped and potentially allowing code injection when the generated string is evaluated.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-59894-unescaped-backslash-before-quote-replace --engine opengrep

Description

Quotes are escaped without escaping backslashes first. If the input contains a backslash preceding a quote, the backslash will escape the escape character itself, leaving the quote unescaped and potentially allowing code injection when the generated string is evaluated.