GHSA-wgpf-jwqj-8h8p

Suggest an improvement
Source
https://github.com/advisories/GHSA-wgpf-jwqj-8h8p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wgpf-jwqj-8h8p/GHSA-wgpf-jwqj-8h8p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wgpf-jwqj-8h8p
Aliases
  • CVE-2026-54289
Downstream
Related
Published
2026-06-16T14:32:31Z
Modified
2026-06-17T17:59:20.201769005Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
hono: Lambda@Edge adapter keeps only the last value of a repeated request header, dropping the rest
Details

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.

Database specific
{
    "nvd_published_at": null,
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2026-06-16T14:32:31Z",
    "cwe_ids": [
        "CWE-348"
    ]
}
References

Affected packages

npm / hono

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.12.25

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-wgpf-jwqj-8h8p/GHSA-wgpf-jwqj-8h8p.json"