Lucene search

K
osvGoogleOSV:PSF-2022-8
HistoryFeb 09, 2022 - 12:00 a.m.

urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-0900:00:00
Google
osv.dev
4

8.2 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

59.6%

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 prior to 3.10.0b1, 3.9.5, 3.8.11, 3.7.11 and 3.6.14.