p PatchFirst

CVE-2025-71381

CVE-2025-71381 · Hono - Vary Header Injection in CORS Middleware

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Hono before 4.10.2 (fixed in 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.

CVSS 6.9 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • hono

    Versions
    • ≥ 0, < 4.10.2: Affected (semver)
    • 4.10.2: Not affected (semver)

    Update to 4.10.2

  • hono npm

    Affected ranges
    • SEMVER: < 4.10.3

    Update to 4.10.3

Original sources

Check your server →