python-s2755-xxe-mining
Read-only mining codemod for python:S2755: XML parsers should not be vulnerable to XXE attacks.
Emits python_security_finding metric rows with blocking severity. Source files are never modified.
Rule
- ID:
python:S2755 - Severity: blocking
- Remediation: Use defusedxml or disable external entity resolution
Usage
bashpnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s2755-xxe-mining/workflow.yaml --target /path/to/python/project
Development
bashpnpm --filter ./codemods/python-security-mining/python-s2755-xxe-mining test