Vulnerability DatabaseGHSA-674p-xv2x-rf3g

GHSA-674p-xv2x-rf3g
Python vulnerability analysis and mitigation

Overview

A log injection vulnerability was discovered in Litestar (GHSA-674p-xv2x-rf3g) affecting versions 2.16.0 and earlier, where the application fails to properly escape URL paths when logging exceptions. The vulnerability was published and reviewed on August 11, 2025, and has been patched in version 2.17.0. This security flaw primarily affects systems where the logging level is set to debug or when log_exceptions is configured to 'always' (GitHub Advisory).

Technical details

The vulnerability stems from Litestar's default exception logging handler directly formatting unquoted paths into exception logs without proper validation or escaping. The issue has been assigned a CVSS score of 3.7 (Low severity) with a vector string of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N. The vulnerability is classified as CWE-117 (Improper Output Neutralization for Logs) (GitHub Advisory).

Impact

When exploited, attackers can inject newlines into logs by embedding %0d%0a in the URL path, allowing them to forge log entries. While log_exceptions='always' is not enabled by default, the vulnerability becomes particularly concerning as this configuration is included in the documentation examples, making it likely that users who copy the logging config directly from the documentation would be affected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Litestar version 2.17.0. Users are advised to upgrade to this version or later to address the security issue. The fix involves properly escaping the path parameter in the exception logging handler, as evidenced by the code changes that modify the logging format string to use %r instead of %s (Litestar Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management