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 VendorProductAffected 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.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker partial control
Severity
9.3 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-611XML External Entity (XXE)
Timeline
Published24 Sep 2026
Updated19 Nov 2026
First seen24 Sep 2026
Track software like this
Free during beta