Reflected XSS in DocXMLRPCServer

Warning

This resource is maintained for historical reference and does not contain the latest vulnerability info for Python.

The canonical database for vulnerabilities affecting Python is available on GitHub in the Open Source Vulnerability (OSV) format. This vulnerability can be viewed online at the Open Source Vulnerability Database.

DocXMLRPCServer does not escape the server title.

The attacker has to find a way to control the server title.

Dates:

  • Disclosure date: 2019-09-21 (Python issue bpo-38243 reported)
  • Red Hat impact: Moderate

Fixed In

Python issue

[security][CVE-2019-16935] A reflected XSS in python/Lib/DocXMLRPCServer.py.

  • Python issue: bpo-38243
  • Creation date: 2019-09-21
  • Reporter: longwenzhang

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. 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.

Timeline

Timeline using the disclosure date 2019-09-21 as reference: