SCA: security update for @fastify/middie (GHSA-cxrg-g7r8-w69p)

high Tenable Self-Hosted Container Security Plugin ID 436822

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- @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. (CVE-2026-22031)

See Also

https://github.com/advisories/GHSA-cxrg-g7r8-w69p

Plugin Details

Severity: High

ID: 436822

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/20/2026

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.88

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-22031

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/20/2026

Vulnerability Publication Date: 1/19/2026

Reference Information

CVE: CVE-2026-22031

cwe: CWE-177