question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

defusedxml is deprecated (by his author)

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Poilcommented, Feb 4, 2019

Hi,

OK but today we have a warning on from lxml import etree and on all etree call If defusedxml.lxml is deprecated we should not have a warning on these, no ?

Best regards,

1reaction
gilbsgilbscommented, Jun 19, 2019

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.lxml until a better solution is found by them.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found