CVE-2026-56817: Netty: XML External Entity (XXE) injection via unconfigured XML factory when DTD and entity processing are enabled

Published Jul 21, 2026
·
Updated

Any caller that can deliver bytes to a Netty channel pipeline containing XmlDecoder can send XML with a DOCTYPE declaration to a parser instantiated with no security configuration — but whether external entities are actually resolved depends on Aalto XML's async parser behavior, making this a confirmed misconfiguration with conditional exploitability.

Other sources

Netty is a network application framework for development of protocol servers and clients. In versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final, any caller that can deliver bytes to a Netty channel pipeline containing XmlDecoder can send XML with a DOCTYPE declaration to an AsyncXMLInputFactory instantiated with no security configuration, leaving DTD and entity handling active depending on Aalto XML async parser behavior and creating conditional XML external entity risk. This issue is fixed in versions 4.1.136.Final and 4.2.16.Final.

MITRE

Affected Software

3 affected componentsFixes available
Netty Netty>=4.2.0.Final<=4.2.15.Final, >=4.1.0.Final<=4.1.135.Final
maven/io.netty:netty-codec-xml>=4.1.0.Final<=4.1.135.Final
4.1.136.Final
maven/io.netty:netty-codec-xml>=4.2.0.Final<=4.2.15.Final
4.2.16.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/io.netty:netty-codec-xml to a version that resolves this vulnerability.

    Fixed in 4.1.136.Final
  2. Upgrade

    Upgrade maven/io.netty:netty-codec-xml to a version that resolves this vulnerability.

    Fixed in 4.2.16.Final
  3. Upgrade

    Upgrade Netty to a version that resolves this vulnerability.

    Fixed in 4.1.136.Final
  4. Upgrade

    Upgrade Netty to a version that resolves this vulnerability.

    Fixed in 4.2.16.Final

Event History

Jul 21, 2026
CVE Published
via MITRE·10:06 PM
Data Sourced
via MITRE·10:06 PM
DescriptionWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness
Jul 22, 2026
Advisory Published
via GitHub·09:43 PM
Data Sourced
via GitHub·09:43 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56817?

CVE-2026-56817 has a risk score of 47, indicating a moderate severity level.

2

What is CVE-2026-56817?

CVE-2026-56817 is a vulnerability in Netty that allows XML External Entity (XXE) injection due to unconfigured XML factory settings.

3

How do I fix CVE-2026-56817?

To mitigate CVE-2026-56817, ensure that DTD and entity processing are disabled in the XML factory settings.

4

Which versions of Netty are affected by CVE-2026-56817?

CVE-2026-56817 affects Netty versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final.

5

What kind of attacks can CVE-2026-56817 lead to?

CVE-2026-56817 can allow attackers to perform XXE injection attacks, potentially leading to unauthorized access to sensitive files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203