CVE-2026-54289
JSON

4.8medium

Hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest

Severity
4.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wgpf-jwqj-8h8p

Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, on AWS Lambda@Edge, CloudFront delivers a request header that appears more than once as several separate entries. The adapter writes each value with Headers.set instead of Headers.append, so every value overwrites the previous one and only the last reaches the application. Repeated request headers such as X-Forwarded-For, Forwarded, and Via are silently truncated to a single value. Request middleware sees only the last value of a repeated header instead of the full chain. For applications that base access control on the X-Forwarded-For chain, this can weaken or alter that decision; for auditing, hop history is lost. This vulnerability is fixed in 4.12.25.

Affected

Product or packageVersionsReported by
honojs hono< 4.12.25CVE List
hono (npm)before 4.12.25GitHub Advisory Database

All scores

GitHub_M4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHub4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-348

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, on AWS Lambda@Edge, CloudFront delivers a request header that appears more than once as several separate entries. The adapter writes each value with Headers.set instead of Headers.append, so every value overwrites the previous one and only the last reaches the application. Repeated request headers such as X-Forwarded-For, Forwarded, and Via are silently truncated to a single value. Request middleware sees only the last value of a repeated header instead of the full chain. For applications that base access control on the X-Forwarded-For chain, this can weaken or alter that decision; for auditing, hop history is lost. This vulnerability is fixed in 4.12.25.

GitHub Advisory Database
Summary

On AWS Lambda@Edge, CloudFront delivers a request header that appears more than once as several separate entries. The adapter writes each value with Headers.set instead of Headers.append, so every value overwrites the previous one and only the last reaches the application. Repeated request headers such as X-Forwarded-For, Forwarded, and Via are silently truncated to a single value.

Details

A repeated request header carries an ordered list of values. The adapter iterates the list but overwrites on each step, keeping only the final value. Middleware that depends on the full list — for example IP restriction that walks the X-Forwarded-For chain, or auditing based on Forwarded/Via hops — receives incomplete data. The API Gateway adapter already appends repeated values and is not affected.

This issue arises only on Lambda@Edge deployments, for requests that contain the same header more than once.

Impact

Request middleware sees only the last value of a repeated header instead of the full chain. For applications that base access control on the X-Forwarded-For chain, this can weaken or alter that decision; for auditing, hop history is lost. This affects applications deployed on AWS Lambda@Edge that rely on multi-value request headers.

NVD (es)

Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la versión 4.12.25, en AWS Lambda@Edge, CloudFront entrega una cabecera de solicitud que aparece más de una vez como varias entradas separadas. El adaptador escribe cada valor con Headers.set en lugar de Headers.append, por lo que cada valor sobrescribe el anterior y solo el último llega a la aplicación. Las cabeceras de solicitud repetidas como X-Forwarded-For, Forwarded y Via se truncan silenciosamente a un único valor. El middleware de solicitud ve solo el último valor de una cabecera repetida en lugar de la cadena completa. Para las aplicaciones que basan el control de acceso en la cadena X-Forwarded-For, esto puede debilitar o alterar esa decisión; para la auditoría, se pierde el historial de saltos. Esta vulnerabilidad se corrige en la versión 4.12.25.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54289 changed 2026-06-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-wgpf-jwqj-8h8p changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54289 changed 2026-10-25Public domain