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

- Severity: High 8.1 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-08-15T13:16:12.473Z
- Modified: 2026-09-04T13:17:20.220Z
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- @fastify/jwt @fastify/jwt: before 10.2.2 (not affected: 10.2.2)
- fastify fastify/jwt: before 10.2.2

## References

- <https://github.com/fastify/fastify-jwt/security/advisories/GHSA-j4cx-787j-xjqg> (mitigation, vendor-advisory)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-18500](https://www.cve.org/CVERecord?id=CVE-2026-18500), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-18500](https://nvd.nist.gov/vuln/detail/CVE-2026-18500), Public domain, modified 2026-09-04

---

Page: https://cve.day/CVE-2026-18500 · Whole record: https://cve.day/CVE-2026-18500.json · Rebuilt by cve.day 2026-11-25T22:59:33.266Z
