Skip to main content

http4s-scala-xml EUVDEUVD-2026-86332

| CVE-2026-61741 CRITICAL
Improper Restriction of XML External Entity Reference (CWE-611)
2026-09-24 GitHub_M GHSA-cjx3-73hr-rpw7
9.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint decoding XML body
  2. Delivery
    Craft XML with external entity/DTD
  3. Exploit
    Submit request, decoder resolves entity
  4. Execution
    Read local file or trigger SSRF/entity expansion
  5. Impact
    Exfiltrate file contents or probe internal network

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that an http4s application actually use the http4s-scala-xml EntityDecoder[F, scala.xml.Elem] (or the Elem decoder) to parse XML message bodies from untrusted sources, on a vulnerable version prior to 0.24.1 / 1.0.0-M39 running on a JDK whose default SAXParserFactory resolves DOCTYPE/external entities. No authentication or user interaction is needed once such an endpoint is exposed (PR:N/UI:N). The key limiting factor is application-level: if the service does not decode attacker-controlled XML with these decoders (e.g. XML is unused, or bodies come only from trusted peers), the flaw is not reachable - the base CVSS does not reflect this dependency.

Impact

This is a classic, high-impact XXE (CWE-611) in the http4s-scala-xml EntityDecoder for scala.xml.Elem, which parsed untrusted XML with an unconfigured SAXParserFactory (DOCTYPE, external general/parameter entities, and external DTDs all resolved by JDK defaults). The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L = 9.3) is internally consistent with the described impacts: network-reachable, no auth, local file disclosure (C:H), SSRF into internal resources (justifying S:C scope change), and entity-expansion DoS (A:L). Exploitability signals are otherwise thin: there is no EPSS score, no CISA KEV listing, and no public exploit code referenced - so this is 'no public exploit identified at time of analysis' rather than confirmed active exploitation. The real-world risk is strongly conditional: the flaw only manifests if a downstream application actually wires these decoders to parse attacker-controlled XML bodies, which is a deployment/coding choice not captured by the base CVSS PR:N assumption. XXE is a well-understood, easily weaponizable class, so where the vulnerable decoder is exposed to untrusted input the effective risk approaches the high score; where XML decoding is unused or fed only trusted input, real risk is negligible. Net: a genuine priority for any Scala/http4s service parsing untrusted XML, but the 9.3 overstates fleet-wide risk given the niche module and the requirement that the app expose XML parsing to untrusted callers.

Exploit ScenarioDerived

An attacker sends an HTTP request with a crafted XML body containing a DOCTYPE with an external entity (e.g. file:///etc/passwd or an internal URL) to an endpoint whose handler decodes the body via the http4s-scala-xml EntityDecoder. The default JDK parser resolves the entity, disclosing local file contents in the response or issuing an SSRF request to internal infrastructure, or exhausting resources via nested entity expansion. No public exploit code is referenced, but XXE payloads for this pattern are trivially available.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

XML External Entity (XXE) injection in http4s-scala-xml's EntityDecoder for scala.xml.Elem (all versions before 0.24.1 and 1.0.0-M39) allows unauthenticated remote attackers who can supply XML message bodies to disclose files readable by the service process, perform server-side request forgery (SSRF) against internal network resources, or trigger denial of service via entity expansion. The decoders obtain a javax.xml.parsers.SAXParserFactory through SAXParserFactory.newInstance without configuring secure-processing features, so JDK default behavior resolves DOCTYPE declarations, external general and parameter entities, and external DTDs. Vendor-released fixes are 0.24.1 and 1.0.0-M39; no public exploit code has been identified at time of analysis, and reachability depends on an application actually using these decoders against untrusted XML.

RemediationAI

Upgrade http4s-scala-xml to 0.24.1 or 1.0.0-M39, the vendor-released patched versions that configure the SAXParserFactory securely; see the advisory at https://github.com/http4s/http4s-scala-xml/security/advisories/GHSA-cjx3-73hr-rpw7 for the full release guidance. If an immediate upgrade is not possible, stop feeding untrusted XML into the scala.xml.Elem decoder - for example, reject or strip XML request bodies at the edge, switch the affected endpoints to a decoder that uses a hardened parser, or wrap parsing in a custom decoder that sets SAXParserFactory features such as http://apache.org/xml/features/disallow-doctype-decl to true, http://xml.org/sax/features/external-general-entities and http://xml.org/sax/features/external-parameter-entities to false, and XMLConstants.ACCESS_EXTERNAL_DTD / ACCESS_EXTERNAL_SCHEMA to empty strings; the trade-off is that legitimate XML documents relying on DTDs, named entities, or schema resolution will fail to parse. As defense in depth, run the service with a restricted filesystem read policy and block outbound network egress from the application process, which limits file disclosure and SSRF but does not prevent in-memory entity-expansion denial of service and can break unrelated integrations. There is no vendor-released patch other than the two fixed versions above, and no public exploit code was identified at time of analysis.

Affected VersionsENISA

http4s-scala-xml 1.0.0-M1, < 1.0.0-M39
http4s-scala-xml < 0.24.1

Affected Packages

maven org.http4s:http4s-scala-xml_2.12 fix: 0.24.1
maven org.http4s:http4s-scala-xml_2.13 fix: 0.24.1, 1.0.0-M39
maven org.http4s:http4s-scala-xml_3 fix: 0.24.1, 1.0.0-M39
euvd http4s_scala_xml fix: 0.24.1
euvd http4s_scala_xml_1_0_0_m1 fix: 1.0.0-M39

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 5 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is CWE-611 (Improper Restriction of XML External Entity Reference) in the http4s-scala-xml integration library, which supplies http4s EntityDecoder instances that parse request bodies into scala.xml.Elem. Because the decoder constructs its parser via SAXParserFactory.newInstance with no hardening, the underlying SAX parser inherits the JDK's default configuration, where DOCTYPE declarations are honored and external general entities, external parameter entities, and external DTD subsets are resolved. An attacker-controlled XML document can therefore define entities that reference local file URIs (file:///etc/passwd, application config, cloud metadata files) or remote URLs, causing content disclosure and outbound requests from the server, and can also nest entities to expand memory and CPU. The CVSS vector scores Scope as Changed (S:C) because the parser can reach resources beyond the vulnerable component - local filesystem and internal network services - with Confidentiality:High and Availability:Low. The CPE cpe:2.3:a:http4s:http4s-scala-xml:*:*:*:*:*:*:*:* reflects that all released versions in the affected range are potentially vulnerable; the advisory specifically pins the boundary at versions prior to 0.24.1 and 1.0.0-M39. True exploitability is application-dependent: services that do not use the scala.xml.Elem decoder on untrusted XML, or that run on JDKs with hardened SAXParserFactory defaults, are not reachable through this code path.

Know when Http4S gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
vuln.today AI 9.3 CRITICAL

Network-reachable unauthenticated XML parsing yields file disclosure (C:H) and SSRF crossing a trust boundary (S:C); entity-expansion gives limited DoS (A:L), no integrity impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:L/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 19:04 EUVD
CVE Published
Sep 24, 2026 - 17:48 cve.org
CRITICAL 9.3

DescriptionCVE.org

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.

Technical POC Analysis

CWE-611: the vulnerable code is http4s-scala-xml's EntityDecoder[F, scala.xml.Elem] instances, specifically the default saxFactory in ElemInstances.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A critical XML parsing flaw in http4s-scala-xml, the Scala library many JVM services use to handle XML request bodies, could allow an outside party to read files on the server, use the server to reach internal systems that are not otherwise exposed, or knock the service offline with a single crafted message. Exposure is limited to services that actually feed untrusted XML into these decoders, and no public exploit code has been identified, so this is a high-priority hardening obligation rather than a fire drill. Vendor fixes are already published, making rapid upgrade the decisive control.

Business Impact: High
Compensating Controls

Apply vendor patch (0.24.1 or 1.0.0-M39). If immediate upgrade is not possible, disable DTD and external entity processing via JAXP secure-processing settings, reject DOCTYPE declarations in inbound XML at the edge, and restrict outbound egress from affected application tiers to limit file disclosure and SSRF.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
optional XML module for Scala-only http4s stack; niche ecosystem
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Http4S

View all
CVE-2026-69215 MEDIUM POC
6.8 Sep 15

Http4s client applications that keep a cookie jar can leak stored cookies — including session and authentication cookies

CVE-2025-59822 MEDIUM POC
6.3 Sep 23

Http4s is a Scala interface for HTTP services. Rated medium severity (CVSS 6.3), this vulnerability is remotely exploita

CVE-2023-22465 MEDIUM POC
5.3 Jan 04

Http4s is a Scala interface for HTTP services. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploita

CVE-2026-69204 CRITICAL
9.2 Sep 15

Request smuggling in the http4s Ember HTTP/1.1 parser lets an unauthenticated, remote attacker bypass front-end access c

CVE-2021-39185 CRITICAL
9.1 Sep 01

Http4s is a minimal, idiomatic Scala interface for HTTP services. Rated critical severity (CVSS 9.1), this vulnerability

CVE-2026-69217 HIGH
8.7 Sep 15

HTTP request smuggling in http4s Ember (all releases prior to 0.23.35 and 1.0.0-M47) lets an unauthenticated remote atta

CVE-2026-69205 HIGH
8.7 Sep 15

Let me synthesize. CVE-2026-69205: http4s Ember HTTP parser request smuggling via Transfer-Encoding header case-sensiti

CVE-2021-41084 MEDIUM POC
4.7 Sep 21

http4s is an open source scala interface for HTTP. Rated medium severity (CVSS 4.7), this vulnerability is remotely expl

CVE-2026-69210 HIGH
7.5 Sep 15

A crafted WebSocket frame can pin a worker thread and exhaust memory in the http4s Scala HTTP library, causing denial of

CVE-2026-69203 HIGH
7.5 Sep 15

Heap exhaustion in the http4s Ember backend (0.23.x before 0.23.35 and 1.0.0 milestones before 1.0.0-M47) allows a singl

CVE-2026-69208 HIGH
7.5 Sep 15

Heap-exhaustion denial of service in the http4s DigestAuth server middleware: an inverted stale-nonce comparison in Nonc

CVE-2026-73493 HIGH
7.5 Aug 12

Unbounded WebSocket fragment aggregation in http4s-blaze-server allows any client that completes a WebSocket handshake t

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy