Vulnerabilities · 2019 · Python
CVE-2019-16935
Python vulnerability
The documentation XML-RPC server in Python through 2.7.16, 3.x through 3.6.9, and 3.7.x through 3.7.4 has XSS via the server_title field. This occurs in Lib/DocXMLRPCServer.py in Python 2.x, and in Lib/xmlrpc/server.py in Python 3.x. If set_server_title is called with untrusted input, arbitrary JavaScript can be delivered to clients that visit the http URL for this server.
Affected products
Python, Debian Linux, Ubuntu Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.python.org/issue38243 · Exploit
- lists.opensuse.org/opensuse-security-announce/2019-10/msg00062.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-10/msg00063.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-11/msg00012.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-11/msg00021.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html · Third Party Advisory
- github.com/python/cpython/blob/35c0809158be7feae4c4f877a08b93baea2d8291/Lib/xmlrpc/server. · Third Party Advisory
- github.com/python/cpython/blob/e007860b8b3609ce0bc62b1780efaa06241520bd/Lib/DocXMLRPCServe · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-16935
- cve.org/CVERecord?id=CVE-2019-16935
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.