Skip to content
2 changes: 1 addition & 1 deletion Lib/xmlrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ def dumps(params, methodname=None, methodresponse=None, encoding=None,
data = (
xmlheader,
"<methodCall>\n"
"<methodName>", methodname, "</methodName>\n",
"<methodName>", escape(methodname), "</methodName>\n",
data,
"</methodCall>\n"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix XML injection vulnerability in :func:`xmlrpc.client.dumps` where the ``methodname``
Comment thread
sanyamk23 marked this conversation as resolved.
Outdated
was not being escaped before interpolation into the XML body.
Loading