Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2026-61741: http4s-scala-xml may leak files or network through XML
CVE-2026-61741 · published 1 month ago
Summary
The http4s‑scala‑xml library processes XML without protecting against malicious content in older versions. If your application accepts XML from outside sources, an attacker could craft a request that reads local files, contacts internal services, or crashes the server. Upgrade to version 0.24.1 or later (or 1.0.0‑M39 or later) to apply the necessary safety settings.
What to do
- Update org.http4s:http4s-scala-xml_2.12 to version 0.24.1.
- Update org.http4s:http4s-scala-xml_2.13 to version 0.24.1.
- Update org.http4s:http4s-scala-xml_2.13 to version 1.0.0-M39.
- Update org.http4s:http4s-scala-xml_3 to version 0.24.1.
- Update org.http4s:http4s-scala-xml_3 to version 1.0.0-M39.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | http4s | http4s-scala-xml | < 0.24.1 |
| maven | – | org.http4s:http4s-scala-xml_2.12 |
<= 0.24.0 Fix: upgrade to 0.24.1
|
| maven | – | org.http4s:http4s-scala-xml_2.13 |
<= 0.24.0 >= 1.0.0-M1, <= 1.0.0-M38.1 Fix: upgrade to 0.24.1
|
| maven | – | org.http4s:http4s-scala-xml_3 |
<= 0.24.0 >= 1.0.0-M1, <= 1.0.0-M38.1 Fix: upgrade to 0.24.1
|
| Maven | – | org.http4s:http4s-scala-xml_2.12 |
< 0.24.1 Fix: upgrade to 0.24.1
|
| Maven | – | org.http4s:http4s-scala-xml_2.13 |
< 0.24.1 >= 1.0.0-M1, < 1.0.0-M39 Fix: upgrade to 0.24.1
|
| Maven | – | org.http4s:http4s-scala-xml_3 |
< 0.24.1 >= 1.0.0-M1, < 1.0.0-M39 Fix: upgrade to 0.24.1
|
Original advisory text
http4s-scala-xml has an XML External Entity (XXE) processing issue
http4s-scala-xml provides `EntityDecoder[F, scala.xml.Elem]` instances that parse XML message bodies. Prior to versions 0.24.1 and 1.0.0-M39, these decoders used a `javax.xml.parsers.SAXParserFactory` obtained from `SAXParserFactory.newInstance` without any security configuration. With the JDK's default settings, the parser resolves DOCTYPE declarations, external general and parameter entities, and external DTDs.An application that uses these decoders to parse untrusted XML is vulnerable to XML External Entity (XXE) attacks. An attacker can craft a request that discloses local files readable by the service process, performs server-side request forgery (SSRF) against internal network resources, and/or causes denial of service through entity expansion. Versions 0.24.1 and 1.0.0-M39 fix the issue.
References
- https://github.com/http4s/http4s-scala-xml/security/advisories/GHSA-cjx3-73hr-rp... Vendor Advisory
- https://github.com/http4s/http4s-scala-xml/commit/326f965a2c45fc2ddbc22545dcf551...
- https://nvd.nist.gov/vuln/detail/CVE-2026-61741 Vendor Advisory
- https://github.com/http4s/http4s-scala-xml/releases/tag/v0.24.1
- https://github.com/http4s/http4s-scala-xml/releases/tag/v1.0.0-M39
- https://github.com/advisories/GHSA-cjx3-73hr-rpw7
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61741... Vendor Advisory
- https://github.com/http4s/http4s-scala-xml Product
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-611XML External Entity (XXE)
Timeline
Published24 Sep 2026
Updated19 Nov 2026
First seen24 Sep 2026
Sources
CVE-2026-61741 · OSV
CVE-2026-61741 · NVD
CVE-2026-61741 · MITRE
GHSA-cjx3-73hr-rpw7 · GHSA
GHSA-cjx3-73hr-rpw7 · OSV
Track software like this
Free during beta