All reports
High

OWSLib vulnerable to XML External Entity (XXE) Injection

Affected versions

Version ranges need review.

Affected versions
Unknown
Fixed version
0.28.1
Affected versions
< 0.28.1
Fixed version
0.28.1

Exploitation

CVE-2023-27476

Probability of exploitation in the next 30 days: 0.98%

FIRST EPSS · 2026-11-24

Description

Impact

OWSLib's XML parser (which supports both lxml and xml.etree) does not disable entity resolution for lxml, and could lead to arbitrary file reads from an attacker-controlled XML payload. This affects all XML parsing in the codebase.

Patches
Workarounds
patch_well_known_namespaces(etree)
etree.set_default_parser(
    parser=etree.XMLParser(resolve_entities=False)
)
References

Links

Credits

  • jorgectf