# CVE-2026-18500: @fastify/jwt vulnerable to authorization bypass via global secret overriding the per-request key

- Priority: **Routine**
- Reason: Not severe (CVSS 8.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-15 · Modified: 2026-08-17
- Record: https://cvemate.com/vulnerability/CVE-2026-18500 · JSON: https://cvemate.com/vulnerability/CVE-2026-18500/json

## Description

```text
@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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.155%, percentile 4.842%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fastify fastify\\/jwt: \< 10.2.2
- @fastify/jwt @fastify/jwt: \< 10.2.2

## References

- <https://github.com/fastify/fastify-jwt/security/advisories/GHSA-j4cx-787j-xjqg>
- <https://cna.openjsf.org/security-advisories.html>

---

Data as of 2026-12-05T09:19:58.328Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
