CVE-2026-18500
published high CVSS 3.1 · 8.1@fastify/jwt vulnerable to authorization bypass via global secret overriding the per-request key
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/jwt | — | @fastify/jwt0 to < 10.2.2 (affected · semver) · 10.2.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/jwt | @fastify/jwt | 0 to < 10.2.2 (affected · semver)10.2.2 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-347 CWE-347: Improper Verification of Cryptographic Signature
References
2Provider assertions
2openjs · cna
@fastify/jwt vulnerable to authorization bypass via global secret overriding the per-request key
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- eccef29b75d61839722da885d525808967924d93e0885aed13a7000f58ce70b1
- Ingested
- 23 Sep 2026, 09:03:19 UTC
- Source record
- Official CVE record