CVE-2026-54289: Hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest
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.
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/honoto a version that resolves this vulnerability.Fixed in 4.12.25 - Upgrade
Upgrade
Honoto a version that resolves this vulnerability.Fixed in 4.12.25
Event History
Frequently Asked Questions
What is the severity of CVE-2026-54289?
The severity of CVE-2026-54289 is medium with a score of 4.8.
What are the implications of CVE-2026-54289?
CVE-2026-54289 allows request headers that appear multiple times to be overwritten, leading to potential data loss and incorrect application behavior.
How do I fix CVE-2026-54289?
To fix CVE-2026-54289, ensure your implementation correctly uses Headers.append instead of Headers.set to handle duplicate header values.
What software is affected by CVE-2026-54289?
CVE-2026-54289 affects the npm package named hono.
When was CVE-2026-54289 published?
CVE-2026-54289 was published on June 16, 2026.