-
-
Notifications
You must be signed in to change notification settings - Fork 681
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Just so this is recorded somewhere, it's certainly not a show-stopper bug:
If your program uses lxml, it's going to get warnings like this:
>> Issue: [B410:blacklist] Using lxml to parse untrusted XML data is known to be vulnerable to XML attacks. Replace lxml with the equivalent defusedxml package.
Except that the defusedxml.lxml package was never really real, it was intended as an example, and to stop people from using it as-is it's now deprecated and planned for removal. Probably bandit should not be suggesting that? The problem is - what else would one suggest?
See: https://pypi.org/project/defusedxml/#defusedxml-lxml
Reproduction steps
Run bandit on something that uses lxml.
Expected behavior
Expect: "a useful suggestion". Possibly there's no good suggestion to make here?
Bandit version
1.7.0 (Default)
Python version
3.9 (Default)
Additional context
No response
jakob-keller, realjanpaulus, Armitxes, danjac, jpodivin and 3 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working