---
id: "CVE-2026-120317"
kind: "vulnerability"
aliases: ["CVE-2026-120317"]
title: "http4k: digest auth skips request body, letting on-path attackers alter requests"
severity: "high"
cvss: 8.2
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["digest-auth", "http4k", "jvm", "kotlin", "package"]
not_affected_if: ["default-config", "no-digest-auth", "tls-only"]
published_at: "2026-11-02T03:17:29+00:00"
first_seen_at: "2026-11-02T03:31:23+00:00"
updated_at: "2026-11-02T03:31:50+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120317", "first_seen_at": "2026-11-02T03:31:23+00:00"}]
---

# http4k: digest auth skips request body, letting on-path attackers alter requests

http4k's DigestEncoder computes the auth-int digest without hashing the request body, so the signed Authorization header still validates after the body is changed. An on-path attacker on a non-TLS connection can rewrite authenticated requests and trigger state-changing actions as the victim.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for the http4k dependency in build files, for example `http4k-core` in `build.gradle` or `pom.xml`, and note its version.
- Confirm whether any client uses digest authentication with the auth-int quality of protection.
- Check whether those requests travel over plain HTTP.

## Fix

- http4k from `4.9.10.0` before `6.60.0.0`: move to `6.60.0.0` or later.

## Timeline

- 2026-11-02T03:31:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-120317

## From the sources

http4k from 4.9.10.0 before 6.60.0.0 contains a missing integrity check vulnerability because DigestEncoder computes the auth-int digest without hashing the request entity body. On-path attackers on non-TLS channels can rewrite the body of authenticated requests while keeping the Authorization header valid, executing state-changing actions as the victim.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
