defusedxml is deprecated (by his author)
See original GitHub issueHi, In this issue the author said no more need of defusedxml but bandit still recommend it.
https://github.com/tiran/defusedxml/issues/25
defusedxml.lxml is no longer needed and supported. Nowadays libxml2 has builtin limitation for entity expansion.
What I can find about these vulnerabilities, libxml2 seems to have been patched in 2013, ref : CVE-2013-1664 CVE-2013-1665
They have been patched on EL6 and never existed on EL7
Best regards,
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
defusedxml · PyPI
DEPRECATED The module is deprecated and will be removed in a future release. The module acts as an example how you could protect...
Read more >Remove old-deprecated ElementTree features (part 2)
The proposed PR removes old-deprecated ElementTree features. ... author of PEP 594 and owner of the defusedxml package. xml.etree.
Read more >defusedxml [python-library] - Occam :: Details
DEPRECATED The module is deprecated and will be removed in a future release. The module acts as an example how you could protect...
Read more >Pytest E DeprecationWarning: defusedxml.lxml is no longer ...
This warning has been fixed recently. You should try a more recent version of the lib to get rid of it (3.0.3 is...
Read more >`defusedxml.xml` is deprecated (#1404) · Issues · openpyxl ...
Created originally on Bitbucket by val.komarov (Val Komarov) When running openpyxl, it tries to pull in the defusedxml.lxml package, which appears...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi,
OK but today we have a warning on
from lxml import etreeand on all etree call If defusedxml.lxml is deprecated we should not have a warning on these, no ?Best regards,
Hi. @lukehinds could you please re-open or reply to @Poil? I am also affected by this and I am not sure what to do. ~Shouldn’t lxml be whitelisted by bandit?~ Thanks!
Edit: I guess this is the issue to track: https://github.com/tiran/defusedxml/issues/38 ? It should be safe to use
defusedxml.lxmluntil a better solution is found by them.