Skip to main content

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

CRITICAL

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

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

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.

Check my pom.xml

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.

  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.

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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: Maven (3).

PackageFixed 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-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. 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

CVSS Score
9.3

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.47%
EPSS percentile: 32.9

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

GHSA-cjx3-73hr-rpw7

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml