CVE-2026-61741 — Vulnerability in http4s-scala-xml_2.13 — CVE Details
http4s-scala-xml has an XML External Entity (XXE) processing issue
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.47%). Schedule for your next planned update.
Does your project use an affected org.http4s:http4s-scala-xml_2.13 version?
Paste your pom.xml to check it for CVE-2026-61741 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
http4s-scala-xml provides EntityDecoder[F, scala.xml.Elem] instances that parse XML message bodies. 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.
Impact
Any service that derives an XML EntityDecoder from this library and parses attacker-controlled input is affected.
Patches
The default SAXParserFactory is now hardened:
- secure processing is enabled
DOCTYPEdeclarations are disallowed- external general/parameter entities and external DTD loading are disabled
- DTD URIs are not resolved
- XInclude is disabled.
These defaults match scala.xml.XMLLoader's defaults since 2.0.0.
Workarounds
Before upgrading, override ElemInstances#saxFactory with a hardened factory.
val secured = new ElemInstances {
override protected val saxFactory = {
val f = javax.xml.parsers.SAXParserFactory.newInstance
f.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true)
// etc.
f
}
}
import secured._
Advisory Timeline
- First published September 24, 2026 (63 days ago).
- Last revised September 24, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.0.0-M39 for org.http4s:http4s-scala-xml_2.13 -->
<!-- Update pom.xml dependency version to 0.24.1 for org.http4s:http4s-scala-xml_3 -->
<!-- Update pom.xml dependency version to 0.24.1 for org.http4s:http4s-scala-xml_2.12 -->
<!-- Update pom.xml dependency version to 0.24.1 for org.http4s:http4s-scala-xml_2.13 -->
<!-- Update pom.xml dependency version to 1.0.0-M39 for org.http4s:http4s-scala-xml_3 -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: Maven (3).
| Package | Fixed In |
|---|---|
| org.http4s:http4s-scala-xml_2.13 Maven · Affected: 1.0.0-M10, 1.0.0-M13, 1.0.0-M14, 1.0.0-M15 (+29 more) | 1.0.0-M39 |
| org.http4s:http4s-scala-xml_3 Maven · Affected: 0.22.0, 0.22.0-M8, 0.22.0-RC1, 0.22.1 (+33 more) | 0.24.1 |
| org.http4s:http4s-scala-xml_2.12 Maven · Affected: 0.10.0-M10, 0.15.0, 0.15.0a, 0.15.1 (+236 more) | 0.24.1 |
| org.http4s:http4s-scala-xml_2.13 Maven · Affected: 0.10.0-M10, 0.21.0, 0.21.0-M1, 0.21.0-M2 (+90 more) | 0.24.1 |
| org.http4s:http4s-scala-xml_3 Maven · Affected: 1.0.0-M22, 1.0.0-M23, 1.0.0-M24, 1.0.0-M25 (+11 more) | 1.0.0-M39 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-611XML External Entity (XXE)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
References
- https://github.com/http4s/http4s-scala-xml/security/advisories/GHSA-cjx3-73hr-rpw7WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-61741ADVISORY
- https://github.com/http4s/http4s-scala-xml/commit/326f965a2c45fc2ddbc22545dcf551b0f719f4c8WEB
- https://github.com/http4s/http4s-scala-xmlPACKAGE
- https://github.com/http4s/http4s-scala-xml/releases/tag/v0.24.1WEB
- https://github.com/http4s/http4s-scala-xml/releases/tag/v1.0.0-M39WEB
Frequently Asked Questions
- What is CVE-2026-61741?
- http4s-scala-xml has an XML External Entity (XXE) processing issue. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
- How do I check if my project is affected by CVE-2026-61741?
- CVE-2026-61741 affects org.http4s:http4s-scala-xml_2.13, org.http4s:http4s-scala-xml_3 and org.http4s:http4s-scala-xml_2.12. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-61741 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 32.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2021-39185CRITICAL
Default CORS config allows any origin with credentials
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-69204CRITICAL
Http4s Ember accepts Transfer-Encoding combined with Content-Length (CL.TE request smuggling)
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2021-41084HIGH
Response Splitting from unsanitized headers
- CVE-2026-69205HIGH
Http4s Ember Transfer-Encoding value parsing (TE.CL / TE.0 request smuggling)