Netty XML: Injection / Risky Sink — unconfigured XML factory with active DTD and entity handlingGHSA-4qhr-g3c6-fcfx
Fix: netty/netty@5b68c61GHSA-4qhr-g3c6-fcfx is a XML External Entity (XXE) vulnerability in io.netty:netty-codec-xml. A fix is available for io.netty:netty-codec-xml — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-4qhr-g3c6-fcfx.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
io.netty:netty-codec-xml☕io.netty:netty-codec-xmlReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | io.netty:netty-codec-xml | ≥ 4.2.0.Final&&< 4.2.16.Final | 4.2.16.Finalio.netty:netty-codec-xml:4.2.16.Final |
| ☕Maven | io.netty:netty-codec-xml | ≥ 4.1.0.Final&&< 4.1.136.Final | 4.1.136.Finalio.netty:netty-codec-xml:4.1.136.Final |
Affected Products
nettynettyDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for io.netty:netty-codec-xml, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update io.netty:netty-codec-xml to 4.2.16.Final or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-4qhr-g3c6-fcfx is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This Important flaw in Netty's `XmlDecoder` component allows for XML External Entity (XXE) injection. When a Netty channel pipeline processes XML data with a `DOCTYPE` declaration via an `AsyncXMLInputFactory` that lacks proper security configuration, a remote attacker could potentially disclose sensitive information.…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.Source: Red Hat security advisory for GHSA-4qhr-g3c6-fcfx (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat build of Apache Camel 4.18.3 for Spring Boot 3.5.16 | netty-codec-xml | RHSA-2026:54622 |
| Red Hat Data Grid 8.6.3 | netty-codec-xml | RHSA-2026:69296 |
Frequently Asked Questions
Is GHSA-4qhr-g3c6-fcfx in your dependencies?
Find it across Maven, including transitive dependencies.