Should one still use defusedxml instead of built-in XML libraries? #3697
Replies: 2 comments
-
Oh interesting! I was following Bandit's lead here. I wonder if this decision is "bigger" than Ruff, since the Python documentation still recommends
|
Beta Was this translation helpful? Give feedback.
-
See this recent conversation: https://discuss.python.org/t/status-of-defusedxml-and-recommendation-in-docs/34762/21 |
Beta Was this translation helpful? Give feedback.
-
Ruff 0.0.259 adds several flake8-bandit rules that warn about using the built-in XML libraries, and recommend using defusedxml instead, see PR #3239
I wonder whether one should still use defusedxml in 2023. Reasons:
So maybe the recommendation should be changed to "make sure your build of Python uses the expat 2.4.1 or newer"?
Beta Was this translation helpful? Give feedback.
All reactions