vetkit.csharp.xxe.dtd-processing-enabled
DTD processing is explicitly enabled for an XML reader. Parsing untrusted XML with DTDs enabled allows entity-expansion denial of service and, together with a resolver, XML external entity (XXE) attacks.
Last updated:
Suite: Security
csharp
DTD processing is explicitly enabled for an XML reader. Parsing untrusted XML with DTDs enabled allows entity-expansion denial of service and, together with a resolver, XML external entity (XXE) attacks.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Keep DtdProcessing.Prohibit (or Ignore) and XmlResolver = null for any XML that does not come from a fully trusted source.
References
Source: packages/engine/rules/sast/csharp.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.