CVE-2025-53528: Fastapi Openapi Xss From Request
Unsanitized query or path parameters are incorporated into the `openapi_url` passed to `get_swagger_ui_html` or `get_redoc_html`. This can lead to Reflected Cross-Site Scripting (XSS) because the URL is embedded directly in a Javascript context without additional escaping. Sanitize the user input using `urllib.parse.quote` before generating the documentation
greprules fetch cve-2025-53528-fastapi-openapi-xss-from-request --engine opengrepDescription
Unsanitized query or path parameters are incorporated into the `openapi_url` passed to `get_swagger_ui_html` or `get_redoc_html`. This can lead to Reflected Cross-Site Scripting (XSS) because the URL is embedded directly in a Javascript context without additional escaping. Sanitize the user input using `urllib.parse.quote` before generating the documentation
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.