CVE-2026-18500

High

Description

@fastify/jwt is a JSON Web Token plugin for Fastify. In versions before 10.2.2, a per-request verification key passed to request.jwtVerify({ key }) is silently overridden by the plugin's globally configured secret, because the option merge applies the global key last. Applications that use different keys for different authorization domains, for example separate user and admin keys, therefore accept a token signed with the global key on a route that explicitly requires another key. This lets an ordinary authenticated user cross a key-based trust boundary without knowing either secret. The issue is fixed in @fastify/jwt 10.2.2, where an explicit per-call key takes precedence over the global secret. Users should upgrade to 10.2.2.

SeverityHigh
CVSS8.1
Exploit probability—
ProductFastify\/jwt
PublishedAug 15, 2026
First seenAug 15, 2026
Weakness typeCWE-347CWE-347

How to fix

Update
  • fastify fastify\/jwt10.2.2 or later

Affected products

ProductAffected versionsFixed in
fastify fastify\/jwtv < 10.2.210.2.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.