CVE-2026-59897
JSON

4.8medium

Hono: API Gateway v1 adapter can drop a distinct repeated request header value during de-duplication

Severity
4.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xgm2-5f3f-mvvc

Description

Hono is a Web application framework that provides support for any JavaScript runtime. From 4.3.3 before 4.12.27, the AWS API Gateway v1 adapter can drop a distinct repeated request header value because it de-duplicates values using a substring comparison instead of an exact match, so middleware or application logic that depends on the complete X-Forwarded-For chain, rate limiting, audit logging, or proxy-chain validation can receive incomplete data. This issue is fixed in version 4.12.27.

Affected

Product or packageVersionsReported by
honojs hono>= 4.3.3, < 4.12.27CVE List
hono (npm)from 4.3.3 before 4.12.27GitHub Advisory Database
hono honofrom 4.3.3 before 4.12.27NVD

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
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-348

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

What each source says

CVE List

Hono is a Web application framework that provides support for any JavaScript runtime. From 4.3.3 before 4.12.27, the AWS API Gateway v1 adapter can drop a distinct repeated request header value because it de-duplicates values using a substring comparison instead of an exact match, so middleware or application logic that depends on the complete X-Forwarded-For chain, rate limiting, audit logging, or proxy-chain validation can receive incomplete data. This issue is fixed in version 4.12.27.

GitHub Advisory Database
Summary

The AWS API Gateway v1 adapter can drop a distinct repeated request header value. When a header appears multiple times, the adapter de-duplicates values using a substring comparison instead of an exact match, so a value that is a substring of another value of the same header is omitted (for example, 203.0.113.1 is dropped when another value is 203.0.113.10).

Details

A repeated request header carries an ordered list of values. Middleware or application logic that depends on the complete list — such as IP restriction that walks the X-Forwarded-For chain, rate limiting, audit logging, or proxy-chain validation — can therefore receive incomplete data that differs from what the client actually sent.

This issue arises on deployments using the AWS API Gateway v1 adapter (the same pattern also affects the VPC Lattice adapter), for requests that contain the same header more than once.

Impact

An attacker can craft repeated header values so that one value is omitted before the application sees the request. Where a security or routing decision relies on the full chain, this can alter that decision.

This affects applications deployed through Hono's AWS API Gateway v1 (or VPC Lattice) adapter that rely on the complete set of repeated request header values.

NVD (es)

Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Desde la 4.3.3 antes de la 4.12.27, el adaptador de AWS API Gateway v1 puede descartar un valor de encabezado de solicitud repetido distinto porque desduplica valores usando una comparación de subcadena en lugar de una coincidencia exacta, por lo que el middleware o la lógica de la aplicación que depende de la cadena completa de X-Forwarded-For, la limitación de velocidad, el registro de auditoría o la validación de la cadena de proxy puede recibir datos incompletos. Este problema se ha corregido en la versión 4.12.27.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-59897 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-xgm2-5f3f-mvvc changed 2026-09-10CC-BY-4.0
NVDCVE-2026-59897 changed 2026-10-25Public domain