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: