# CVE-2025-71381: Hono - Vary Header Injection in CORS Middleware

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-10-24T19:15:13.000Z
- Modified: 2026-10-29T21:17:05.513Z
- Also known as: GHSA-q7jf-gf43-6x6p
- Weaknesses: CWE-113, CWE-444
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

Hono before 4.10.3 contains a flaw in its CORS middleware: when the origin is not set to "*", the middleware copies the Vary header from the incoming request into the response. Because Vary is a response header that should be managed by the server, an attacker can supply arbitrary Vary values that are reflected into the response, potentially causing cache key pollution and inconsistent CORS enforcement in environments that rely on shared caches or proxies.

(As written by CVE List.)

## Affected

- Hono Hono: before 4.10.3 (not affected: 4.10.3)
- hono (npm): before 4.10.3

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6p> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middleware> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71381> (advisory)
- <https://github.com/honojs/hono/commit/d9b8b4b73b4f997994f2764013207365fe711282> (web)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2025-71381](https://www.cve.org/CVERecord?id=CVE-2025-71381), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-q7jf-gf43-6x6p](https://github.com/advisories/GHSA-q7jf-gf43-6x6p), CC-BY-4.0, modified 2026-10-02
- NVD: [CVE-2025-71381](https://nvd.nist.gov/vuln/detail/CVE-2025-71381), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2025-71381 · Whole record: https://cve.day/CVE-2025-71381.json · Rebuilt by cve.day 2026-11-25T22:59:12.368Z
