<?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-05T01:55:26.877299+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-r5rp-j6wh-rvv4</id>
    <title>GHSA-r5rp-j6wh-rvv4 — Hono: Non-breaking space prefix bypass in cookie name handling in getCookie()</title>
    <updated>2026-10-05T01:55:26.896927+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 discrepancy between browser cookie parsing and `parse()` handling allows cookie prefix protections to be bypassed.</p>
<p>Cookie names that are treated as distinct by the browser may be normalized to the same key by `parse()`, allowing attacker-controlled cookies to override legitimate ones.</p>
<p>## Details</p>
<p>Browsers follow RFC 6265bis and only trim SP (`0x20`) and HTAB (`0x09`) from cookie names. Other characters, such as the non-breaking space (`U+00A0`), are preserved as part of the cookie name.</p>
<p>For example, the browser treats the following cookies as distinct:</p>
<p>```
"dummy-cookie"
"\u00a0dummy-cookie"
```</p>
<p>However, `parse()` previously used JavaScript's `trim()`, which removes a broader set of characters including `U+00A0`. As a result, both names are normalized to:</p>
<p>```
"dummy-cookie"
```</p>
<p>This mismatch allows attacker-controlled cookies with a `U+00A0` prefix to shadow or override legitimate cookies when accessed via `getCookie()`.</p>
<p>## Impact</p>
<p>An attacker who can set cookies (e.g., via a man-in-the-middle on a non-secure page or other injection vector) can bypass cookie prefix protections and override sensitive cookies.</p>
<p>This may lead to:</p>
<p>* Bypassing `__Secure-` and `__Host-` prefix protections
* Overriding cookies that rely on the Secure attribute
* Session fixation or session hijacking depending on application usage</p>
<p>This issue affects applications that rely on `getCookie()` for security-sensitive cookie handling.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-r5rp-j6wh-rvv4"/>
  </entry>
</feed>
