---
id: CVE-2026-61741
title: >-
  http4s-scala-xml provides `EntityDecoder[F, scala.xml.Elem]` instances that
  parse XML message bodies
summary: >-
  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.newI…
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L'
cwe:
  - CWE-611
vendor: http4s
product: http4s-scala-xml
affected:
  - http4s-scala-xml < 0.24.1
  - 'http4s-scala-xml >= 1.0.0-M1, < 1.0.0-M39'
published: '2026-09-24'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T18:17:16.013'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-61741'
references:
  - url: >-
      https://github.com/http4s/http4s-scala-xml/security/advisories/GHSA-cjx3-73hr-rpw7
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-61741'
  - url: >-
      https://github.com/http4s/http4s-scala-xml/commit/326f965a2c45fc2ddbc22545dcf551b0f719f4c8
  - url: 'https://github.com/http4s/http4s-scala-xml/releases/tag/v0.24.1'
  - url: 'https://github.com/http4s/http4s-scala-xml/releases/tag/v1.0.0-M39'
  - url: 'https://github.com/advisories/GHSA-cjx3-73hr-rpw7'
tags:
  - nvd
  - cve.org
  - ghsa
  - maven
ingestedAt: '2026-09-24T18:49:36.708Z'
aliases:
  - GHSA-cjx3-73hr-rpw7
ecosystem: maven
patched:
  - 'org.http4s:http4s-scala-xml_2.12 0.24.1'
  - 'org.http4s:http4s-scala-xml_2.13 0.24.1'
  - 'org.http4s:http4s-scala-xml_2.13 1.0.0-M39'
  - 'org.http4s:http4s-scala-xml_3 0.24.1'
  - 'org.http4s:http4s-scala-xml_3 1.0.0-M39'
epss: 0.00294
epssPercentile: 0.19661
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-61741)

Affected packages:

- `org.http4s:http4s-scala-xml_2.12 <= 0.24.0`
- `org.http4s:http4s-scala-xml_2.13 <= 0.24.0`
- `org.http4s:http4s-scala-xml_2.13 >= 1.0.0-M1, <= 1.0.0-M38.1`
- `org.http4s:http4s-scala-xml_3 <= 0.24.0`
- `org.http4s:http4s-scala-xml_3 >= 1.0.0-M1, <= 1.0.0-M38.1`

Patched in:

- `org.http4s:http4s-scala-xml_2.12 0.24.1`
- `org.http4s:http4s-scala-xml_2.13 0.24.1`
- `org.http4s:http4s-scala-xml_2.13 1.0.0-M39`
- `org.http4s:http4s-scala-xml_3 0.24.1`
- `org.http4s:http4s-scala-xml_3 1.0.0-M39`

Source: https://github.com/advisories/GHSA-cjx3-73hr-rpw7
