Skip to content

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
vshaniga:develop-11.3-backport
Apr 3, 2026
Merged

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
vshaniga merged 2 commits intomarklogic:develop-11.3from
vshaniga:develop-11.3-backport

Conversation

@vshaniga
Copy link
Copy Markdown
Collaborator

@vshaniga vshaniga commented Apr 3, 2026

These changes have already been validated on the develop branch.
Fix XXE Injection - XML External Entity: PR
Weak crypto: PR

Tests

  • Ran unit tests → All passed
  • Ran 06mlcp test suite — no regression failures were found in testing.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vshaniga vshaniga merged commit f5bd4af into marklogic:develop-11.3 Apr 3, 2026
7 checks passed
@vshaniga vshaniga deleted the develop-11.3-backport branch April 3, 2026 11:44
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.

3 participants