@fastify/jwt vulnerable to missing token expiration when per-call options drop global defaults
@fastify/jwt is a JWT utility plugin for Fastify. In versions prior to 10.2.5, the top-level sign and verify methods replace the globally configured defaults with the per-call options instead of merging them, so passing any per-call option silently drops every global default that the call does not restate, including temporal protections such as token expiration and maximum accepted token age. A token signed this way carries no expiration claim and never expires, and verification stops enforcing a configured maximum age, so stale or never-expiring tokens are accepted. The route-level decorators for signing and verifying already merge options and are not affected. The issue is fixed in @fastify/jwt 10.2.5, and users should upgrade to 10.2.5 or later.
CVE-2026-110024
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-110024
@fastify/jwt
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"vendor": "@fastify/jwt",
"product": "@fastify/jwt",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "10.2.5",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "10.2.5",
"versionType": "semver"
}
],
"packageURL": "pkg:npm/@fastify/jwt",
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-110024
Source reference:
/cveMetadata/cveId
Publisher severity
medium
Source reference: /containers/cna/metrics
- Event
- #42497 · Revision 1
- Added to Heist Feed
- Publisher date