Loading...
Skip to main content

CVE-2026-61741 — Vulnerability in org.http4s:http4s-scala-xml_2.13...

CRITICAL

http4s-scala-xml has an XML External Entity (XXE) processing issue

Published September 24, 2026Updated September 24, 2026Source: osv

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 - `DOCTYPE` declarations 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. ```scala 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 (18 days ago).
  • Last revised September 24, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.http4s:http4s-scala-xml_2.13 to 1.0.0-M39 or later
<!-- Update pom.xml dependency version to 1.0.0-M39 for org.http4s:http4s-scala-xml_2.13 -->
Maven
Update org.http4s:http4s-scala-xml_3 to 0.24.1 or later
<!-- Update pom.xml dependency version to 0.24.1 for org.http4s:http4s-scala-xml_3 -->
Maven
Update org.http4s:http4s-scala-xml_2.12 to 0.24.1 or later
<!-- Update pom.xml dependency version to 0.24.1 for org.http4s:http4s-scala-xml_2.12 -->
Maven
Update org.http4s:http4s-scala-xml_2.13 to 0.24.1 or later
<!-- Update pom.xml dependency version to 0.24.1 for org.http4s:http4s-scala-xml_2.13 -->
Maven
Update org.http4s:http4s-scala-xml_3 to 1.0.0-M39 or later
<!-- Update pom.xml dependency version to 1.0.0-M39 for org.http4s:http4s-scala-xml_3 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: maven (3).

PackageEcosystemAffectedFixed In
org.http4s:http4s-scala-xml_2.13
maven
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
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
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
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
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-611
    XML External Entity (XXE)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-61741 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.3

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-cjx3-73hr-rpw7

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies