<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-06T22:26:55.048695+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/ghsa-9vqf-7f2p-gf9v</id>
    <title>GHSA-9vqf-7f2p-gf9v — Hono: bodyLimit() can be bypassed for chunked / unknown-length requests</title>
    <updated>2026-10-06T22:26:55.064692+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>`bodyLimit()` does not reliably enforce `maxSize` for requests without a usable `Content-Length` (e.g. `Transfer-Encoding: chunked`). Oversized requests can reach handlers and return `200` instead of `413`.</p>
<p>## Details</p>
<p>For chunked / unknown-length requests, `bodyLimit()` wraps the body in a stream that counts bytes asynchronously, then runs the handler before the size decision is final. The `413` is only applied afterwards by checking `c.error`.</p>
<p>This lets the limit be bypassed when:</p>
<p>- the handler does not read the body,
- the handler reads only the first chunk(s) and returns, or
- the handler reads the body but swallows the read error in `try/catch`.</p>
<p>In all three cases the handler returns `200` before the limit check completes (or its result is observed).</p>
<p>The fix is to enforce the size decision before `next()` runs, instead of retrofitting the response via `c.error` afterwards.</p>
<p>## Impact</p>
<p>Applications relying on `bodyLimit()` as a hard boundary can be bypassed: oversized chunked requests can reach handler logic and return successful responses. Per-request data exposure is bounded by `maxSize`, but the documented guarantee — "oversized requests are rejected before business logic runs" — does not hold.</p>
<p>## Credits</p>
<p>- @lalalala5678 (slow chunked / early return variants)
- @Jvr2022 (error handling bypass)</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-9vqf-7f2p-gf9v"/>
  </entry>
</feed>
