Property
Languagego
Severitymedium
CWECWE-611: Improper Restriction of XML External Entity Reference
OWASPA04:2017 - XML External Entities (XXE)
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

The code enables XML external entity (XXE) processing by setting the XMLParseNoEnt flag when parsing XML with libxml2. This allows external entities in user-supplied XML, which can expose sensitive files or systems to attackers.

Impact#

If exploited, an attacker could read confidential files from the server, perform server-side request forgery (SSRF), or cause denial of service. This can lead to data breaches, exposure of internal systems, or disruption of application availability.