[medium] devskim: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null. #916

Closed
opened 2026-11-05 20:13:40 +00:00 by pruefwerk · 1 comment
Member

medium Finding

Scanner: devskim
Severity: medium
Rule: DS132783
CWE: CWE-611
CRA: cra-ai-20 — Automatisierte Sicherheitstests (Annex I)

Description

Do not enable external entity resolution.

Do not enable external entity resolution.: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null.

Location

File: compliance-agent/rules/cra_semgrep_csharp.cs (line 132)

Code

            settings.XmlResolver = new XmlUrlResolver();

Remediation

Exclude rule fixture/example paths from XML parsing scans or move examples out of production paths.


Fingerprint: 59214fb444285cb1a51d879ec61cad43da612f69172eba35fa00f83c26a5b849
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## medium Finding **Scanner:** devskim **Severity:** medium **Rule:** DS132783 **CWE:** CWE-611 **CRA:** cra-ai-20 — Automatisierte Sicherheitstests (Annex I) ### Description Do not enable external entity resolution. Do not enable external entity resolution.: Assigning an XmlResolver lets the parser follow external references in the document, including file:// and http:// URIs. ADM.10010's worked example sets XmlResolver to null. ### Location **File:** `compliance-agent/rules/cra_semgrep_csharp.cs` (line 132) ### Code ``` settings.XmlResolver = new XmlUrlResolver(); ``` ### Remediation Exclude rule fixture/example paths from XML parsing scans or move examples out of production paths. --- *Fingerprint:* `59214fb444285cb1a51d879ec61cad43da612f69172eba35fa00f83c26a5b849` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the severity:mediumcra:annex-ipruefwerk labels 2026-11-05 20:13:40 +00:00
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#916