<?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-04T18:45:34.787349+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-xmf8-cvqr-rfgj</id>
    <title>GHSA-xmf8-cvqr-rfgj — Auth.js: getToken() throws an uncaught exception on malformed Bearer authorization headers</title>
    <updated>2026-10-04T18:45:34.790318+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: @auth/core, npm: next-auth</p>
<p>## Summary</p>
<p>The exported `getToken()` helper (`next-auth/jwt` and `@auth/core/jwt`) can throw an uncaught exception when it reads a malformed `Authorization: Bearer …` header. When no session cookie is present, `getToken()` URL-decodes the bearer value before validating it, and malformed percent-encoding causes the decode step to throw rather than being treated as an invalid token. Because `getToken()` is commonly called in API routes, middleware, and other request handlers, a single unauthenticated request can trigger an unhandled exception in code paths that authenticate requests.</p>
<p>## Am I affected?</p>
<p>You are affected if **all** of the following hold:</p>
<p>- You use `next-auth` `&lt;= 5.0.0-beta.25` (or `@auth/core` exposing the same `getToken()` implementation).
- Your application calls `getToken()` directly — for example in a Route Handler, middleware, or server-side request handler.
- You do not wrap that `getToken()` call in your own `try/catch`.</p>
<p>You are **not** affected if you only use the framework's `auth()` helper and never call `getToken()` yourself, or if every `getToken()` call site already has its own exception handling.</p>
<p>## Impact</p>
<p>- Denial of service: an unauthenticated request carrying a malformed Bearer authorization header can raise an unhandled exception in any handler that calls `getToken()`.
- The impact is per-request and limited to availability; it does not expose tokens, sessions, or other data, and does not bypass authentication.</p>
<p>CWE-20: Improper Input Va…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-xmf8-cvqr-rfgj"/>
  </entry>
</feed>
