CVE-2019-16935: 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.
Medium CVSS 6.1
- CVE id
- CVE-2019-16935
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
>= 2.7.0, < 2.7.17 >= 3.0.0, < 3.5.8 >= 3.6.0, < 3.6.10 >= 3.7.0, < 3.7.5 |
2.7.17, 3.5.8, 3.6.10, 3.7.5 |
How to fix it
Upgrade Python to the fixed release of the line you run: 2.7.17, 3.5.8, 3.6.10, 3.7.5.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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 servertitle field. This occurs in Lib/DocXMLRPCServer.py in Python 2.x, and in Lib/xmlrpc/server.py in Python 3.x. If setserver_title is called with untrusted input, arbitrary JavaScript can be delivered to clients that visit the http URL for this server.
References
- CVE-2019-16935 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-16935
- Web: https://bugs.python.org/issue38243
- Web: https://github.com/python/cpython/blob/35c0809158be7feae4c4f877a08b93baea2d8291/Lib/xmlrpc/server.py#L897
- Web: https://github.com/python/cpython/blob/e007860b8b3609ce0bc62b1780efaa06241520bd/Lib/DocXMLRPCServer.py#L213
- Web: https://github.com/python/cpython/pull/16373
- Web: https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html
- Web: https://lists.debian.org/debian-lts-announce/2021/04/msg00015.html
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4X3HW5JRZ7GCPSR7UHJOLD7AWLTQCDVR/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEARDOTXCYPYELKBD2KWZ27GSPXDI3GQ/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JCPGLTTOBB3QEARDX4JOYURP6ELNNA2V/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M34WOYCDKTDE5KLUACE2YIEH7D37KHRX/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OYGESQSGIHDCIGOBVF7VXCMIE6YDWRYB/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/
- Web: https://security.netapp.com/advisory/ntap-20191017-0004/
- Web: https://usn.ubuntu.com/4151-1/
- Web: https://usn.ubuntu.com/4151-2/
- Web: https://www.oracle.com/security-alerts/cpujul2020.html
- Web: https://bugs.python.org/issue38243
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.