All vulnerabilities

Servers and applications

CVE-2022-0391

A flaw was found in Python, specifically within the urllib.parse module. This module helps break Uniform Resource Locator (URL) strings into components. The issue involves how the urlparse method does not sanitize input and allows characters like '\r' and '\n' in the URL path. This flaw allows an attacker to input a crafted URL, leading to injection attacks. This flaw affects Python versions…

Severity
High 7.5
Published
9 Feb 2022
Last changed
14 Oct 2026
Added to UpHeron
21 Oct 2026
Fixed in
3.6.14, 3.7.11, 3.8.11, 3.9.5
Sources
NVD

Affected software

SoftwareAffected versions
PythonServers and applications · cpe:a:python:python
  • Version 3.10.0-alpha6
  • Version 3.10.0-alpha5
  • Version 3.10.0-alpha4
  • Version 3.10.0-alpha3
All 10 release lines
  • Every version before 3.6.14
  • From 3.7.0 before 3.7.11
  • From 3.8.0 before 3.8.11
  • From 3.9.0 before 3.9.5
  • Version 3.10.0-alpha1
  • Version 3.10.0-alpha2
  • Version 3.10.0-alpha3
  • Version 3.10.0-alpha4
  • Version 3.10.0-alpha5
  • Version 3.10.0-alpha6

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-0391
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-0391