PT-2019-5583 · Python+10 · Python+10

Published

2019-09-21

·

Updated

2026-05-18

·

CVE-2019-16935

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Python versions 2.7.16 and earlier, 3.x through 3.6.9, and 3.7.x through 3.7.4
Description The issue is related to the documentation XML-RPC server in Python, which is vulnerable to cross-site scripting (XSS) attacks via the server title field. This occurs in the Lib/DocXMLRPCServer.py file in Python 2.x and in the Lib/xmlrpc/server.py file in Python 3.x. If the set server title function is called with untrusted input, arbitrary JavaScript can be delivered to clients visiting the HTTP URL for this server. Additionally, the http.cookiejar.LOOSE HTTP DATE RE regex is vulnerable to regular expression denial of service (REDoS), which can lead to extreme CPU usage and execution being blocked for a long time when processing a response from a malicious HTTP server.
Recommendations For Python versions 2.7.16 and earlier, 3.x through 3.6.9, and 3.7.x through 3.7.4, update to a version where the set server title function is secured against untrusted input. As a temporary workaround, consider restricting the use of the set server title function until a patch is available. Avoid using the http.cookiejar.LOOSE HTTP DATE RE regex to parse Set-Cookie headers from untrusted HTTP servers.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2020:1605
ALT-PU-2019-3103
ALT-PU-2020-1434
ALT-PU-2020-3318
ALT-PU-2021-2653
ALT-PU-2024-3474
BDU:2020-04508
CESA-2020_1605
CESA-2020_3888
CESA-2020_3911
CESA-2020_4433
CLEANSTART-2026-BM51903
CLEANSTART-2026-SY44974
CVE-2019-16935
DLA-2280-1
DLA-2628-1
MGASA-2019-0318
OPENSUSE-SU-2019:2389-1
OPENSUSE-SU-2019:2393-1
OPENSUSE-SU-2019:2438-1
OPENSUSE-SU-2019:2453-1
OPENSUSE-SU-2019_2389-1
OPENSUSE-SU-2019_2393-1
OPENSUSE-SU-2019_2438-1
OPENSUSE-SU-2019_2453-1
OPENSUSE-SU-2020:0086-1
OPENSUSE-SU-2020:2332-1
OPENSUSE-SU-2020:2333-1
OPENSUSE-SU-2020_0086-1
OPENSUSE-SU-2020_2332-1
OPENSUSE-SU-2020_2333-1
OPENSUSE-SU-2024:11202-1
OPENSUSE-SU-2024:11284-1
PSF-2019-14
PSF-2019-6
RHSA-2020:1605
RHSA-2020:3888
RHSA-2020:3911
RHSA-2020:4285
RHSA-2020:4433
RHSA-2020_1605
RHSA-2020_3888
RHSA-2020_3911
RHSA-2020_4433
RLSA-2020:1605
SUSE-SU-2019:2743-1
SUSE-SU-2019:2748-1
SUSE-SU-2019:2748-2
SUSE-SU-2019:2802-1
SUSE-SU-2020:0114-1
SUSE-SU-2020:0234-1
SUSE-SU-2020:2699-1
SUSE-SU-2020:3930-1
SUSE-SU-2020_3930-1
USN-4151-1
USN-4151-2
USN-6891-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Debian
Linuxmint
Python
Red Hat
Rocky Linux
Suse
Ubuntu