You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from xml.etree.ElementTree import Element, SubElement
import defusedxml.ElementTree as ET
ET.Element = _ElementType = Element
ET.SubElement = SubElement
Note that we still disallow
from xml.etree.ElementTree import parse
The text was updated successfully, but these errors were encountered:
defusedxml is not capable of creating Element or SubElement
Whitelisting in bad_xml_use.py
would help solve this.
A work around could then be used as follows:
Note that we still disallow
The text was updated successfully, but these errors were encountered: