Skip to content

Harden XML parsing against XXE#2

Merged
jbuncle merged 1 commit intomasterfrom
security/harden-xml-parsing
Mar 29, 2026
Merged

Harden XML parsing against XXE#2
jbuncle merged 1 commit intomasterfrom
security/harden-xml-parsing

Conversation

@jbuncle
Copy link
Copy Markdown
Owner

@jbuncle jbuncle commented Mar 29, 2026

Summary:

  • centralize secure XML parser factory creation
  • disable DOCTYPE declarations and external entity resolution
  • enable secure transformer settings for XML serialization

Why:
DocumentBuilderFactory was being used with default settings while parsing remote SOAP responses. Hardening the XML factories reduces XXE and external resource loading risk.

Verification:

  • relied on existing GitHub Actions validation for this repo

@jbuncle jbuncle merged commit 25042c2 into master Mar 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant