<?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-09-30T10:13:31.320728+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-wwv5-g3v4-889x</id>
    <title>GHSA-wwv5-g3v4-889x — Tornado: Incomplete fix for CVE-2026-35536: cookie attribute injection re-opened via the legacy case-insensitive `**kwa…</title>
    <updated>2026-09-30T10:13:31.348740+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: tornado</p>
<p>## Summary
The CVE-2026-35536 fix added a validation loop that rejects `[\x00-\x20\x3b\x7f]`, but only for the
hardcoded **lowercase** keys `name`/`domain`/`path`/`samesite`. The still-live deprecated `**kwargs` path
writes attacker-supplied attribute values straight into the `Morsel` with no validation, and because
`Morsel.__setitem__` is case-insensitive, a capitalized kwarg (`Domain=`, `Path=`, `SameSite=`, `Max-Age=`)
routes to the same reserved attribute while bypassing the loop — re-opening `;`-delimited attribute injection.</p>
<p>```python
self.set_cookie("sid", "abc", Domain="evil.com; Secure; SameSite=None")
#  -&gt; Set-Cookie: sid=abc; Domain=evil.com; Secure; SameSite=None; Path=/
# Sanity (the canonical lowercase named arg IS blocked):
self.set_cookie("sid", "abc", domain="evil.com; Secure")   # -&gt; http.cookies.CookieError
```</p>
<p>The patch's regression test (`SetCookieForbiddenCharHandler`) only exercises the four named params, never the
`**kwargs` path, so the gap is not regression-covered.</p>
<p>## Affected code
- `tornado/web.py` → `RequestHandler.set_cookie`: the validation loop covers only the lowercase named args;
  the trailing `if kwargs:` loop does `morsel[k] = v` with no character validation.</p>
<p>## Steps to reproduce
`GET /upper` (uses `Domain=` kwarg) emits `Set-Cookie: c_upper=v; Domain=evil.com; Secure; SameSite=None; Path=/`; `GET /lower` (uses lowercase
`domain=`) returns a `CookieError`.</p>
<p>## Impact
Injection of independent cookie attributes (force/drop `Secure`/`…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-wwv5-g3v4-889x"/>
  </entry>
</feed>
