Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Fix XML-parsing related vulnerabilities by using defusedxml if available #73

Closed
wants to merge 1 commit into from

Conversation

cdman
Copy link
Contributor

@cdman cdman commented Jan 24, 2014

For more details as to what vulnerabilties are there see https://pypi.python.org/pypi/defusedxml/

@ziima
Copy link
Contributor

ziima commented Nov 25, 2020

This should be already fixed.

@ziima ziima closed this Nov 25, 2020
@dbaxa
Copy link

dbaxa commented Nov 25, 2020

Hi @ziima, how so? (the python 3 fork of this library explicitly uses defusedxml -> see https://github.com/necaris/python3-openid/blob/master/openid/oidutil.py#L18)

@ziima
Copy link
Contributor

ziima commented Nov 26, 2020

I use lxml parser with resolve_entities=False

parser = etree.XMLParser(resolve_entities=False)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants