<?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-10T22:57:54.454616+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/fkie_cve-2026-107720</id>
    <title>fkie_cve-2026-107720</title>
    <updated>2026-10-10T22:57:54.456964+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.3.1, fast-jwt createVerifier accepts an unsigned JWT when key is an empty string or null and algorithms is a non-empty allowlist. Falsy synchronous keys bypass prepareKeyOrSecret, allowedAlgorithms remains active, hasKey is false, and the empty signature avoids the verifySignature gate. An attacker can therefore submit a token containing arbitrary claims without possessing a signing key, resulting in authentication or authorization bypass. Claim validators still run, and non-empty keys, an empty key without algorithms, and the async key resolver path do not have this behavior. This issue is fixed in version 6.3.1.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-107720"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-8wpc-h4q6-8fxv</id>
    <title>GHSA-8wpc-h4q6-8fxv — fast-jwt: createVerifier accepts unsigned JWTs when key is '' or null and algorithms is explicitly set</title>
    <updated>2026-10-10T22:57:54.457057+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: fast-jwt</p>
<p>### Summary</p>
<p>`createVerifier` in fast-jwt ≤ 6.3.0 skips signature verification entirely when the `key` option is a falsy synchronous value (`''` or `null`) **and** the `algorithms` option is set to a non-empty allowlist. An attacker who can present a JWT to the application — regardless of algorithm — can forge arbitrary claims without possessing any signing key.</p>
<p>### Details</p>
<p>**Root cause — four cooperating code paths:**</p>
<p>**A. Falsy sync keys bypass `prepareKeyOrSecret`**</p>
<p>`createVerifier` branches on `typeof key`:</p>
<p>```js
const keyType = typeof key
if (keyType !== 'string' &amp;&amp; keyType !== 'object' &amp;&amp; keyType !== 'function') {
  throw new TokenError(/* ... */)
}
if (key &amp;&amp; keyType !== 'function') {
  key = prepareKeyOrSecret(key, hsAlgorithms.includes(availableAlgorithms[0]))
}
```</p>
<p>When `key` is `''` (string, falsy) or `null` (object, falsy) the outer type check passes but the `if (key &amp;&amp; ...)` guard never calls `prepareKeyOrSecret`. The empty-secret rejection added in that function is therefore never reached for sync keys:</p>
<p>```js
function prepareKeyOrSecret(key, isSecret) {
  if (isSecret &amp;&amp; key.length === 0) {
    throw new TokenError(TokenError.codes.invalidKey, 'The key cannot be an empty string or buffer.')
  }
  return isSecret ? createSecretKey(key) : createPublicKey(key)
}
```</p>
<p>**B. Explicit `algorithms` keeps an allowlist active with no key**</p>
<p>When `key` is falsy, autodetection is skipped and the caller-supplied `algorithms` (e.g. `['HS256']`) is retained in `allowed…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-8wpc-h4q6-8fxv"/>
  </entry>
</feed>
