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

exploitDog

redhat логотип

CVE-2025-58752

Опубликовано: 08 сент. 2025
Источник: redhat
CVSS3: 3.7
EPSS Низкий

Описание

Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the server.fs settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use appType: 'spa' (default) or appType: 'mpa' are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.

A path traversal / static-file serving bypass vulnerability has been identified in Vite’s static file server, where HTML files located outside the configured root or deny/allow lists may be served even when server.fs settings (such as deny) are used. An attacker can exploit this by requesting HTML files (via paths using .. or similar) that should be blocked, but are returned because the middleware chain falls back to HTML-fallback and index HTML handlers which do not enforce the file system restrictions.

Отчет

This issue is rated Low severity as it only allows unintended disclosure of HTML files and does not impact system integrity or availability. Exploitation requires specific conditions: the application must explicitly expose the Vite dev server to the network (via --host or server.host), and must be configured as appType: 'spa' (default) or appType: 'mpa'. The vulnerability also affects the preview server, which may serve HTML files outside of the designated output directory.

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

  • Avoid exposing the dev or preview server to untrusted networks.
  • Disable or restrict HTML fallback handlers if possible.
  • Carefully review server.fs.allow / server.fs.deny settings to minimize exposure.

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

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Ansible Automation Platform 2automation-controllerFix deferred
Red Hat Ansible Automation Platform 2automation-eda-controllerFix deferred
Red Hat Ansible Automation Platform 2automation-gatewayFix deferred
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentFix deferred
Red Hat JBoss Enterprise Application Platform Expansion Packorg.keycloak-keycloak-parentFix deferred
Red Hat OpenShift Dev Spacesdevspaces/traefik-rhel9Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-agent-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-all-in-one-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-collector-rhel8Fix deferred
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-es-index-cleaner-rhel8Fix deferred

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

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

Статус:

Low
Дефект:
CWE-200
Дефект:
CWE-23
Дефект:
CWE-284
https://bugzilla.redhat.com/show_bug.cgi?id=2393983vite: Vite's `server.fs` settings were not applied to HTML files

EPSS

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

3.7 Low

CVSS3

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

CVSS3: 5.3
nvd
3 месяца назад

Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.

CVSS3: 5.3
debian
3 месяца назад

Vite is a frontend tooling framework for JavaScript. Prior to versions ...

github
3 месяца назад

Vite's `server.fs` settings were not applied to HTML files

EPSS

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

3.7 Low

CVSS3

Уязвимость CVE-2025-58752