# CVE-2024-55875: http4k has a potential XXE (XML External Entity Injection) vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.19%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-12T18:56:59.499Z
- Modified: 2026-06-17T08:11:23.553Z
- Also known as: GHSA-7mj5-hjjj-8rgw
- Weaknesses: CWE-200, CWE-611, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- http4k http4k: < 6.50.0.0
- org.http4k:http4k-format-xml (Maven): before 6.50.0.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/http4k/http4k/security/advisories/GHSA-7mj5-hjjj-8rgw> (exploit, web)
- <https://github.com/http4k/http4k/commit/35297adc6d6aca4951d50d8cdf17ff87a8b19fbc> (web)
- <https://github.com/http4k/http4k/blob/25696dff2d90206cc1da42f42a1a8dbcdbcdf18c/core/format/xml/src/main/kotlin/org/http4k/format/Xml.kt#L42-L46> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-55875> (advisory)
- <https://github.com/http4k/http4k> (package)

## Sources

- CVE List: [CVE-2024-55875](https://www.cve.org/CVERecord?id=CVE-2024-55875), CVE Terms of Use, modified 2026-06-09
- GitHub Advisory Database: [GHSA-7mj5-hjjj-8rgw](https://github.com/advisories/GHSA-7mj5-hjjj-8rgw), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2024-55875](https://nvd.nist.gov/vuln/detail/CVE-2024-55875), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-55875 · Whole record: https://cve.day/CVE-2024-55875.json · Rebuilt by cve.day 2026-11-25T22:58:50.068Z
