{"id":"CVE-2025-71381","aliases":["GHSA-q7jf-gf43-6x6p"],"summary":"Hono - Vary Header Injection in CORS Middleware","published_at":"2025-10-24T19:15:13Z","modified_at":"2026-10-29T21:15:18.744Z","products":[],"rating":{"severity":"medium","score":6.9,"vector":"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","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0029200001154094934,"percentile":0.22192999720573425,"date":"2026-11-19T00:00:00Z"},"priority":8.9,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"Hono/Hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.10.3"}]}],"fixed":["4.10.3"],"provider":"cvelistv5","source":"CVE-2025-71381","relation":"self"},{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.8-tuxcare.0"},{"fixed":"4.5.8-tuxcare.2"}]}],"versions":["4.5.8","4.5.8-tuxcare.1"],"fixed":["4.5.8-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1794697295","relation":"upstream"},{"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.10.3"}]}],"fixed":["4.10.3"],"provider":"osv","source":"GHSA-q7jf-gf43-6x6p","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:8","status":"not_affected","packages":["mta/mta-solution-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-27/mcp-server-rhel9","ansible-automation-platform-tech-preview/mcp-server-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"not_affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["grafana12.4","grafana13.1"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"not_affected","packages":["devspaces/code-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1794697295","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1794697295","published_at":"2026-11-15T00:01:36Z","modified_at":"2026-11-15T02:00:08.204864Z","summary":"TuxCare security update for hono (2 CVEs)","details":"TuxCare rebuilt hono to address 2 CVEs. Fixed in 4.5.8-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.8-tuxcare.0"},{"fixed":"4.5.8-tuxcare.2"}]}],"versions":["4.5.8","4.5.8-tuxcare.1"],"fixed":["4.5.8-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1794697295","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2025-71381","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-71381","license":"CC-BY-4.0","published_at":"2026-06-30T22:08:21.523Z","modified_at":"2026-10-29T21:15:18.744Z","summary":"Hono - Vary Header Injection in CORS Middleware","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2025-71381"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"CVE-2025-71381"}],"affected":[{"ecosystem":"CVE","package":"Hono/Hono","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.10.3"}]}],"fixed":["4.10.3"],"provider":"cvelistv5","source":"CVE-2025-71381","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6p"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middleware"}]},{"provider":"osv","source_id":"GHSA-q7jf-gf43-6x6p","relation":"self","url":"https://osv.dev/vulnerability/GHSA-q7jf-gf43-6x6p","license":"CC-BY-4.0","published_at":"2025-10-24T19:15:13Z","modified_at":"2026-10-02T18:45:04.883415Z","summary":"Hono vulnerable to Vary Header Injection leading to potential CORS Bypass","details":"### Summary  \nA flaw in the CORS middleware allowed request `Vary` headers to be reflected into the response, enabling attacker-controlled `Vary` values and potentially affecting cache behavior.\n\n### Details  \nThe middleware previously copied the `Vary` header from the request when `origin` was not set to `\"*\"`.  Since `Vary` is a response header that should only be managed by the server, this could allow an attacker to influence caching behavior or cause inconsistent CORS handling.\n\nMost environments will see impact only when shared caches or proxies rely on the `Vary` header. The practical effect varies by configuration.\n\n### Impact  \nMay cause cache key pollution and inconsistent CORS enforcement in certain setups. No direct confidentiality, integrity, or availability impact in default configurations.  \n\n### Resolution  \nUpdate to the latest patched release. The CORS middleware has been corrected to handle `Vary` exclusively as a response header.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"GHSA-q7jf-gf43-6x6p"}],"affected":[{"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.10.3"}]}],"fixed":["4.10.3"],"provider":"osv","source":"GHSA-q7jf-gf43-6x6p","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71381"},{"type":"WEB","url":"https://github.com/honojs/hono/commit/d9b8b4b73b4f997994f2764013207365fe711282"},{"type":"PACKAGE","url":"https://github.com/honojs/hono"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middleware"}]},{"provider":"redhat-vex","source_id":"CVE-2025-71381","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-71381","license":"CC-BY-4.0","published_at":"2026-06-30T22:08:21.523Z","modified_at":"2026-10-29T20:30:56Z","summary":"Hono: Hono: Potential CORS bypass via Vary Header Injection","details":"A flaw was found in Hono's Cross-Origin Resource Sharing (CORS) middleware. When the origin is not set to a wildcard, the middleware improperly copies the Vary header from incoming requests into the response. This allows an attacker to inject arbitrary Vary values, potentially leading to cache key pollution and inconsistent CORS enforcement. Such an issue can affect environments that rely on shared caches or proxies, potentially enabling a bypass of CORS policies.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"CVE-2025-71381"},{"type":"Red Hat","score":"Moderate","source":"CVE-2025-71381"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","cpe":"cpe:/a:redhat:migration_toolkit_applications:8","status":"not_affected","packages":["mta/mta-solution-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-27/mcp-server-rhel9","ansible-automation-platform-tech-preview/mcp-server-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"not_affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["grafana12.4","grafana13.1"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"not_affected","packages":["devspaces/code-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-71381"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71381.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-71381"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2495425"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-71381"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71381"},{"type":"WEB","url":"https://github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6p"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middleware"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/honojs/hono/security/advisories/GHSA-q7jf-gf43-6x6p"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hono-vary-header-injection-in-cors-middleware"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71381"},{"type":"WEB","url":"https://github.com/honojs/hono/commit/d9b8b4b73b4f997994f2764013207365fe711282"},{"type":"PACKAGE","url":"https://github.com/honojs/hono"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71381.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-71381"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2495425"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-71381"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1794697295","url":"https://osv.dev/vulnerability/CLSA-2026-1794697295","modified_at":"2026-11-15T02:00:08.204864Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2025-71381","url":"https://www.cve.org/CVERecord?id=CVE-2025-71381","license":"CC-BY-4.0","modified_at":"2026-10-29T21:15:18.744Z","relation":"self"},{"provider":"osv","source_id":"GHSA-q7jf-gf43-6x6p","url":"https://osv.dev/vulnerability/GHSA-q7jf-gf43-6x6p","license":"CC-BY-4.0","modified_at":"2026-10-02T18:45:04.883415Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-71381","url":"https://access.redhat.com/security/cve/CVE-2025-71381","license":"CC-BY-4.0","modified_at":"2026-10-29T20:30:56Z","relation":"self"}]}
