Skip to content

Commit 8fa5788

Browse files
authored
defusedxml: Show correct module name (#1081)
The module name described in the warning message is incomplete and confusing.
1 parent fe9ca8b commit 8fa5788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bandit/blacklists/imports.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@
146146
----------------------
147147
148148
XMLRPC is particularly dangerous as it is also concerned with communicating
149-
data over a network. Use defused.xmlrpc.monkey_patch() function to monkey-patch
150-
xmlrpclib and mitigate remote XML attacks.
149+
data over a network. Use defusedxml.xmlrpc.monkey_patch() function to
150+
monkey-patch xmlrpclib and mitigate remote XML attacks.
151151
152152
+------+---------------------+------------------------------------+-----------+
153153
| ID | Name | Imports | Severity |
@@ -376,7 +376,7 @@ def gen_blacklist():
376376
issue.Cwe.IMPROPER_INPUT_VALIDATION,
377377
["xmlrpc"],
378378
"Using {name} to parse untrusted XML data is known to be "
379-
"vulnerable to XML attacks. Use defused.xmlrpc.monkey_patch() "
379+
"vulnerable to XML attacks. Use defusedxml.xmlrpc.monkey_patch() "
380380
"function to monkey-patch xmlrpclib and mitigate XML "
381381
"vulnerabilities.",
382382
"HIGH",

0 commit comments

Comments
 (0)