CVE-2026-58474: Unescaped Fstring Python Code Generation

Detected interpolation of variables into a generated Python script template using quoted f-string syntax (`"{...}"`) instead of safe representation (`{!r}`). An attacker controlling the variable contents can escape the string literal and execute arbitrary code.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-58474-unescaped-fstring-python-code-generation --engine opengrep

Description

Detected interpolation of variables into a generated Python script template using quoted f-string syntax (`"{...}"`) instead of safe representation (`{!r}`). An attacker controlling the variable contents can escape the string literal and execute arbitrary code.