{"answers":{"affected":"2 open source packages ship an affected version, including hono.","exploited":"There is no known exploitation of CVE-2026-54286 in the wild and no public exploit code.","fix":"Upgrade hono to 4.12.25 or later.","what":"CVE-2026-54286 is a medium-severity path traversal vulnerability in honojs hono, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-54286 and fix it if it is affected.\n\nWhat it is: CVE-2026-54286 is a medium-severity path traversal vulnerability in honojs hono, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-54286 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hono (npm): affected all versions; fixed in 4.12.25\n- hono (npm): affected all versions; fixed in 4.12.25\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54286/ (Markdown: https://insights.sbomify.com/CVE-2026-54286/index.md)","id":"CVE-2026-54286","markdown":"https://insights.sbomify.com/CVE-2026-54286/index.md","name":"CVE-2026-54286","record":{"aliases":["ECHO-d407-4169-3fe7","GHSA-wwfh-h76j-fc44","MINI-5f7j-4cwp-hp56","MINI-72rc-4r52-9p4p","MINI-96c2-c8cj-55xh","MINI-9whp-hqm8-57fr","MINI-g7q2-p3fh-59r5","MINI-gfm8-x9g3-x74v","MINI-qxf7-mjvh-v7pm","MINI-r64q-2wqf-vrwr","MINI-rfw7-r8fc-h97x","MINI-rr3r-2cv8-3c6q","MINI-wv4w-vmx8-jmrw","MINI-xr3v-r3hr-x252","ROOT-APP-NPM-CVE-2026-54286"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Hono web framework","requires_auth":"none","summary":"Attackers can read protected static files on Windows hosts by using encoded backslashes in request paths, bypassing prefix-mounted middleware restrictions.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, on Windows hosts, an encoded backslash (%5C) in the request path decodes to \\, which the Windows path resolver treats as a separator. serve-static then resolves a single URL segment such as admin\\secret.txt into a nested file under the root and serves it, letting an attacker read static files meant to be protected behind prefix-mounted middleware. This vulnerability is fixed in 4.12.25.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)","id":"CVE-2026-54286","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"hono: AWS Lambda adapter merges multiple `Set-Cookie` headers into one value, dropping cookies on ALB single-header and Lattice","id":"CVE-2026-54287"},"packages":[{"ecosystem":"npm","fixed":["4.12.25"],"introduced":["0"],"last_affected":[],"package":"hono","purl":null,"source":"GHSA-wwfh-h76j-fc44"},{"ecosystem":"npm","fixed":["4.12.25"],"introduced":["0"],"last_affected":[],"package":"hono","purl":"pkg:npm/hono","source":"GHSA-wwfh-h76j-fc44"}],"prev":{"headline":"opentelemetry-js: Unbounded memory allocation in W3C Baggage propagation","id":"CVE-2026-54285"},"products":["hono"],"published":"2026-06-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["honojs"]},"summary":"Attackers can read protected static files on Windows hosts by using encoded backslashes in request paths, bypassing prefix-mounted middleware restrictions.","url":"https://insights.sbomify.com/CVE-2026-54286/"}