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

Published Aug 15, 2026
·
Updated

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

Affected Software

1 affected component
npm/@fastify/jwt<10.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @fastify/jwt to a version that resolves this vulnerability.

    Fixed in 10.2.2

Event History

Aug 15, 2026
CVE Published
via MITRE·01:16 PM
Data Sourced
via MITRE·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-18500?

The severity of CVE-2026-18500 is high, with a score of 8.1.

2

How do I fix CVE-2026-18500?

To fix CVE-2026-18500, upgrade @fastify/jwt to version 10.2.2 or later.

3

What type of attack does CVE-2026-18500 enable?

CVE-2026-18500 enables authorization bypass via global secret overriding the per-request key.

4

Which versions of @fastify/jwt are affected by CVE-2026-18500?

Versions of @fastify/jwt before 10.2.2 are affected by CVE-2026-18500.

5

What does CVE-2026-18500 affect in the Fastify framework?

CVE-2026-18500 affects the JSON Web Token verification process in the @fastify/jwt plugin.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203