<?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-01T20:44:28.691752+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-4992-7rv2-5pvq</id>
    <title>GHSA-4992-7rv2-5pvq — Undici has CRLF Injection in undici via `upgrade` option</title>
    <updated>2026-10-01T20:44:28.704707+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: undici</p>
<p>### Impact</p>
<p>When an application passes user-controlled input to the `upgrade` option of `client.request()`, an attacker can inject CRLF sequences (`\r\n`) to:</p>
<p>1. Inject arbitrary HTTP headers
2. Terminate the HTTP request prematurely and smuggle raw data to non-HTTP services (Redis, Memcached, Elasticsearch)</p>
<p>The vulnerability exists because undici writes the `upgrade` value directly to the socket without validating for invalid header characters:</p>
<p>```javascript
// lib/dispatcher/client-h1.js:1121
if (upgrade) {
  header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`
}
```</p>
<p>### Patches</p>
<p>Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later.</p>
<p>### Workarounds</p>
<p>Sanitize the `upgrade` option string before passing to undici:</p>
<p>```javascript
function sanitizeUpgrade(value) {
  if (/[\r\n]/.test(value)) {
    throw new Error('Invalid upgrade value')
  }
  return value
}</p>
<p>client.request({
  upgrade: sanitizeUpgrade(userInput)
})
```</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-4992-7rv2-5pvq"/>
  </entry>
</feed>
