<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-11T20:20:55.834961+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-wmmm-f939-6g9c</id>
    <title>GHSA-wmmm-f939-6g9c — Hono: Middleware bypass via repeated slashes in serveStatic</title>
    <updated>2026-10-11T20:20:56.076829+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: hono</p>
<p>## Summary</p>
<p>A path handling inconsistency in `serveStatic` allows protected static files to be accessed by using repeated slashes (`//`) in the request path.</p>
<p>When route-based middleware (e.g., `/admin/*`) is used for authorization, the router may not match paths containing repeated slashes, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass.</p>
<p>## Details</p>
<p>The routing layer and `serveStatic` handle repeated slashes differently.</p>
<p>For example:</p>
<p>```
/admin/secret.txt =&gt; matches /admin/*
/admin//secret.txt =&gt; may not match /admin/*
```</p>
<p>However, `serveStatic` may interpret both paths as the same file location (e.g., `admin/secret.txt`) and return the file.</p>
<p>This inconsistency allows a request such as:</p>
<p>```
GET //admin/secret.txt
```</p>
<p>to bypass middleware registered on `/admin/*` and access protected files.</p>
<p>The issue has been fixed by rejecting paths that contain repeated slashes, ensuring consistent behavior between route matching and static file resolution.</p>
<p>## Impact</p>
<p>An attacker can access static files that are intended to be protected by route-based middleware by using repeated slashes in the request path.</p>
<p>This can lead to unauthorized access to sensitive files under the static root.</p>
<p>This issue affects applications that rely on serveStatic together with route-based middleware for access control.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-wmmm-f939-6g9c"/>
  </entry>
</feed>
