Skip to content

Issue #10791: Improve documentation about external DTD loading#19341

Merged
romani merged 1 commit into
checkstyle:masterfrom
avadhutmali:issue-10791-external-dtd-doc
Mar 21, 2026
Merged

Issue #10791: Improve documentation about external DTD loading#19341
romani merged 1 commit into
checkstyle:masterfrom
avadhutmali:issue-10791-external-dtd-doc

Conversation

@avadhutmali

Copy link
Copy Markdown
Contributor

Fixes #10791

Added the three XML parser features disabled by default to the
checkstyle.enableExternalDtdLoad documentation:

  • load-external-dtd
  • external-general-entities
  • external-parameter-entities

Copilot AI review requested due to automatic review settings March 19, 2026 05:47
@avadhutmali

Copy link
Copy Markdown
Contributor Author

GitHub, generate site

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates Checkstyle’s system property documentation to better explain the security implications of enabling external DTD loading and which XML parser features are toggled by checkstyle.enableExternalDtdLoad.

Changes:

  • Documents the three XML parser features disabled by default to mitigate XXE risks.
  • Clarifies that enabling checkstyle.enableExternalDtdLoad turns these features on and should only be used for trusted XML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

When set to <code>false</code> (the default), Checkstyle disables the following
three XML parser features to prevent
<a href="https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing">
XXE (XML External Entity)</a> attacks and unauthorized file-system or network access:
@avadhutmali avadhutmali force-pushed the issue-10791-external-dtd-doc branch 2 times, most recently from 01f6f8f to dcd3b43 Compare March 19, 2026 06:48
@avadhutmali avadhutmali force-pushed the issue-10791-external-dtd-doc branch from dcd3b43 to bb938b7 Compare March 19, 2026 14:17

@romani romani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot

@romani

romani commented Mar 20, 2026

Copy link
Copy Markdown
Member

Please make sure CI is passing

@avadhutmali avadhutmali force-pushed the issue-10791-external-dtd-doc branch from bb938b7 to 6f01c08 Compare March 20, 2026 05:04
@avadhutmali avadhutmali force-pushed the issue-10791-external-dtd-doc branch from 6f01c08 to b685a80 Compare March 20, 2026 07:46
@avadhutmali

Copy link
Copy Markdown
Contributor Author

@romani ping

@romani romani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot

@romani romani merged commit 2abdf66 into checkstyle:master Mar 21, 2026
123 checks 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.

Improve documentation about external DTD loading

3 participants