Versions 4.0.7 through 4.0.9 can skip a RegExp-mounted authentication or authorization check when the plugin sits under a parameterized Fastify prefix. The route handler still runs, which can expose a protected route to an unauthenticated request.The Fastify advisory published on 20 November 2026 rates this issue Critical, with a CVSS 3.1 score of 9.1. That score describes the flaw, while an application is exposed only when it uses the affected version and mount pattern. The advisory fixes the issue in 4.0.10.
What it allows
How Does CVE-2026-133867 Bypass Authentication?
The flaw is a mismatch in how Fastify and the Express middleware matcher handle a parameterized plugin prefix. Fastify resolves the actual request path, but @fastify/express builds a RegExp mount match using literal prefix text. The middleware match can therefore fail even as Fastify continues to the route handler.
If that skipped middleware is the only authentication or authorization check, the handler may process an unauthenticated request. This is our reading of the vendor's stated sequence, not evidence of an attack in the wild. The default router settings are enough for the affected pattern; the advisory does not require an additional option.
Assess the affected routes in a vulnerability intelligence workflow using both dependency version and middleware placement. A score alone cannot tell whether a service uses the risky mount pattern. CISA's KEV catalog version 2026.11.20 did not list this CVE; that catalog status does not establish whether attacks have occurred.
Who is affected
Version Check
| Release Line | Affected Range | Fixed In |
|---|---|---|
| 4.0.x | 4.0.7 to before 4.0.10 | 4.0.10 |
For distribution packages and custom builds, check the supplier’s advisory.
Which CVE-2026-133867 Versions and Deployments Are Affected?
The Fastify advisory lists @fastify/express versions 4.0.7 through 4.0.9 as affected. Version 4.0.10 is the first patched release. The relevant application uses RegExp-mounted Express middleware inside a Fastify plugin registered under a parameterized prefix.
Inspect the installed dependency version and the running deployment, including lockfiles and bundled copies. Then inspect plugin registration and the placement of authentication middleware. A service using a different mount pattern is outside the specific condition described by this advisory, but its other access controls still deserve testing.
Record the change in the patch management process. For related context, see the vulnerability intelligence use case. Those records should include the configuration condition, not just the CVE number.
What to do
-
Find affected deployments
Inventory services using @fastify/express 4.0.7 through 4.0.9. Check the resolved dependency in each running build, not only the package manifest.
-
Check the authentication placement
Review Fastify plugins with parameterized prefixes. Find RegExp-mounted Express middleware used for authentication or authorization, and identify routes that rely on that check alone.
-
Upgrade the plugin
Upgrade @fastify/express to 4.0.10 or later. Rebuild and redeploy each affected service, then verify that the running artifact resolves the patched version.
-
Use the vendor workaround if patching is delayed
Move authentication to a Fastify hook that runs after routing, or avoid a RegExp mount beneath a parameterized plugin prefix. Test the resulting access decision on affected routes.
-
Validate access control after the change
Run authorized unauthenticated and authenticated checks against the routes in a safe test environment. Review application logs for unexpected access, while treating a log entry alone as inconclusive.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-133867 in Brandefense Atlas
The Atlas record of CVE-2026-133867: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does every Fastify application have this flaw?
No. The advisory concerns @fastify/express 4.0.7 through 4.0.9 when RegExp-mounted Express middleware sits beneath a parameterized Fastify plugin prefix.
What is the first fixed @fastify/express version?
The Fastify advisory names 4.0.10 as the first patched release. Verify the resolved version in the running service after deployment.
Can teams reduce exposure before upgrading?
The vendor advises moving authentication into a Fastify hook after routing, or avoiding the affected RegExp mount pattern. Test the access decision after the change.