Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-18427

Опубликовано: 06 авг. 2026
Источник: redhat
CVSS3: 7.5
EPSS Низкий

Описание

@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving.

A flaw was found in @fastify/static. An unauthenticated attacker can bypass route-based guards by using non-canonical path segments in a request. This allows the attacker to access and disclose the contents of files that should be protected by these guards. The vulnerability stems from the static file handler's failure to properly canonicalize various path forms, such as dot segments, duplicate slashes, encoded dots, or backslashes, before matching routes and serving files.

Отчет

This is an Important information disclosure flaw in @fastify/static that allows an unauthenticated attacker to bypass route guards. By crafting a non-canonical path, an attacker can access files intended to be protected, leading to sensitive information disclosure.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-automl-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-autorag-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-eval-hub-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-gen-ai-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-maas-rhel9Affected

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-41
https://bugzilla.redhat.com/show_bug.cgi?id=2512116@fastify/static: @fastify/static: Information disclosure via route guard bypass

EPSS

Процентиль: 38%
0.00458
Низкий

7.5 High

CVSS3

Связанные уязвимости

CVSS3: 7.5
nvd
11 дней назад

@fastify/static before version 10.1.3 contains an incomplete fix for a previous route guard bypass. The static file handler rejected only parent directory segments, but it did not canonicalize dot segments, duplicate slashes, encoded dots, or backslashes before route matching and before delegating to the send layer. As a result, an unauthenticated attacker could request a file protected by a route based guard using a non canonical path form that misses the guarded route yet resolves back onto the protected file, disclosing its contents. Applications that protect a subtree of the static root with a route based guard are affected, while applications relying on the allowedPath option are not. This is fixed in @fastify/static 10.1.3, which canonicalizes the pathname, including rejecting backslashes, on the path used for routing and serving.

EPSS

Процентиль: 38%
0.00458
Низкий

7.5 High

CVSS3