CVE-2025-66458: Python Markup Unsafe Formatting
Constructing a `Markup` object using Python's built-in string formatting (e.g., f-strings, `.format()`, `%`, or string concatenation) bypasses HTML escaping. `Markup` trusts the evaluated string entirely, leading to Cross-Site Scripting (XSS) if variable contents are user-controlled. Instead, pass the format string directly to `Markup` and then call `.format
greprules fetch cve-2025-66458-python-markup-unsafe-formatting --engine opengrepDescription
Constructing a `Markup` object using Python's built-in string formatting (e.g., f-strings, `.format()`, `%`, or string concatenation) bypasses HTML escaping. `Markup` trusts the evaluated string entirely, leading to Cross-Site Scripting (XSS) if variable contents are user-controlled. Instead, pass the format string directly to `Markup` and then call `.format
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 0
- Projects
- 0
- Reporters
- 0
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.