MLE-27666 MLE-27667 MLE-27668 MLE-27669 MLE-27670: Fix XXE Injection - XML External Entity and Weak crypto Polaris medium severity issues (Backport)#582
Merged
vshaniga merged 2 commits intomarklogic:develop-11.3from Apr 3, 2026
Conversation
…rnal Entity Polaris medium severity issues
…ontentReader.java
There was a problem hiding this comment.
Pull request overview
Backport of previously validated security fixes to address Polaris medium-severity findings by hardening XML processing against XXE and updating an example SSL configuration to avoid weak protocol usage.
Changes:
- Disable external entity resolution and DTD support for StAX parsing in aggregate XML readers.
- Restrict TransformerFactory external access (DTD/stylesheet) to mitigate XXE during XML transform/serialization.
- Update the ContentReader example to use TLSv1.3 (and avoid hardcoded cipher suites).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/com/marklogic/mapreduce/JSONDocument.java | Harden TransformerFactory to block external DTD/stylesheet access (XXE prevention). |
| src/main/java/com/marklogic/mapreduce/DOMDocument.java | Harden TransformerFactory to block external DTD/stylesheet access (XXE prevention). |
| src/main/java/com/marklogic/contentpump/AggregateXMLReader.java | Disable DTD and external entity resolution on XMLInputFactory (XXE prevention). |
| src/main/java/com/marklogic/contentpump/CompressedAggXMLReader.java | Disable DTD and external entity resolution on XMLInputFactory (XXE prevention). |
| src/main/java/com/marklogic/mapreduce/examples/ContentReader.java | Update example SSL protocol from TLSv1 to TLSv1.3 and stop hardcoding cipher suites. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
NeoSaber
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes have already been validated on the develop branch.
Fix XXE Injection - XML External Entity: PR
Weak crypto: PR
Tests