XML External Entity (XXE)
A flaw where an XML parser is tricked into accessing files or systems it should not.
What it is
XML External Entity injection abuses a feature of XML that lets documents reference external resources. When an application parses untrusted XML without disabling this feature, an attacker can make the parser read local files, contact internal systems, or disrupt the application. The weakness is in the parser configuration, not the application code itself.
Why it matters
XXE can expose sensitive server files and internal systems, and in some cases contribute to denial of service or server-side request forgery.
How to fix it
Disable external entity and document type processing in XML parsers, and prefer simpler data formats where possible.