CVE & CISA-KEV Catalog

CVE-2026-22031

HIGH
8.4
CVSS v3
NVD

Description

@fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability exists in @fastify/middie prior to version 9.1.0 where middleware registered with a specific path prefix can be bypassed using URL-encoded characters (e.g., `/%61dmin` instead of `/admin`). While the middleware engine fails to match the encoded path and skips execution, the underlying Fastify router correctly decodes the path and matches the route handler, allowing attackers to access protected endpoints without the middleware constraints. Version 9.1.0 fixes the issue.

How to fix

Remediation Available
\@fastify\/middieNVD
Affected:< 9.1.0Fixed in:9.1.0CVE-2026-22031derived from NVD
fastify\/middieNVD
Affected:< 9.1.0Fixed in:9.1.0CVE-2026-22031derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityLow

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L

Exploit Intelligence

0.46%probability of exploitation in 30 days
37thpercentile

Low risk: more likely to be exploited than 37% of all known CVEs.

References

Exploit1
Release Notes1

Related Vulnerabilities

Other CWE-177 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-27780High7.52.3%-Fix
CVE-2018-3718Medium5.31.3%-Fix
CVE-2022-3854Medium6.50.6%-Fix
CVE-2026-41041Critical9.10.5%-Fix
CVE-2026-29045High7.50.4%-Fix
CVE-2024-48866Medium5.30.4%--

Common questions

How do I fix CVE-2026-22031?

Published advisories record a fix for 2 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2026-22031 being actively exploited?

Not that we know of. CVE-2026-22031 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.46% is the estimated probability that it will be exploited in the next 30 days. That is higher than 37% of all scored CVEs.

How severe is CVE-2026-22031?

CVE-2026-22031 has a CVSS v3 base score of 8.4, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-22031 affect?

Published advisories record a fix for \@fastify\/middie (NVD), fastify\/middie (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-22031
CVE-2026-22031 severity badge

Markdown

[![CVE-2026-22031](https://tridentstack.com/cve/badge/CVE-2026-22031.svg)](https://tridentstack.com/cve/CVE-2026-22031)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-22031"><img src="https://tridentstack.com/cve/badge/CVE-2026-22031.svg" alt="CVE-2026-22031"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-14.