Lucene search

K
osvGoogleOSV:GHSA-QM57-VHQ3-3FWF
HistoryJun 09, 2021 - 5:14 p.m.

Header injection possible in Django

2021-06-0917:14:51
Google
osv.dev
21
django
2.2
3.1
3.2
urlvalidator
http response
header injection

EPSS

0.002

Percentile

53.5%

In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.