Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2024-55875
Published:December 12, 2024
Updated:June 13, 2026
http4k is a functional toolkit for Kotlin HTTP applications. Prior to version 6.50.0.0, there is a potential XXE (XML External Entity Injection) vulnerability when http4k handling malicious XML contents within requests, which might allow attackers to read local sensitive information on server, trigger Server-side Request Forgery and even execute code under some circumstances. The original fix shipped in v5.41.0.0 / v4.50.0.0 closed the documented external-entity attack class (SSRF, local-file disclosure, code execution) by setting "ACCESS_EXTERNAL_DTD=""", "ACCESS_EXTERNAL_SCHEMA=""", and "isExpandEntityReferences=false" on the default "DocumentBuilderFactory". A residual gap remained: the parser still accepted documents containing "<!DOCTYPE>" declarations even though external entity resolution was blocked. This left open billion-laughs-style internal entity expansion DoS attacks against any application using "Body.xml()" or "Document.asXmlDocument()" on untrusted XML. v6.50.0.0 closes this residual by adding "disallow-doctype-decl=true" and "FEATURE_SECURE_PROCESSING=true" to "defaultXmlParsingConfig". Any document containing a "<!DOCTYPE>" is now rejected at parse time.
Affected Packages
org.http4k:http4k-format-xml (JAVA):
Affected version(s) >=v6.3.0.0 <6.50.0.0
Fix Suggestion:
Update to version 6.50.0.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Restriction of XML External Entity Reference
Exposure of Sensitive Information to an Unauthorized Actor
Server-Side Request Forgery (SSRF)
EPSS
Base Score:
8.05