CVE-2024-52793
JSON

5.1medium

XSS vulnerability in serveDir API of @std/http/file-server on POSIX systems

Severity
5.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.61% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

The Deno Standard Library provides APIs for Deno and the Web. Prior to version 1.0.11, `http/file-server`'s `serveDir` with `showDirListing: true` option is vulnerable to cross-site scripting when the attacker is a user who can control file names in the source directory on systems with POSIX file names. Exploitation might also be possible on other systems but less trivial due to e.g. lack of file name support for `<>` in Windows. Version 1.0.11 fixes the issue.

Affected

Product or packageVersionsReported by
denoland std< 1.0.11CVE List

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

The Deno Standard Library provides APIs for Deno and the Web. Prior to version 1.0.11, `http/file-server`'s `serveDir` with `showDirListing: true` option is vulnerable to cross-site scripting when the attacker is a user who can control file names in the source directory on systems with POSIX file names. Exploitation might also be possible on other systems but less trivial due to e.g. lack of file name support for `<>` in Windows. Version 1.0.11 fixes the issue.

NVD (es)

La librería estándar de Deno proporciona API para Deno y la Web. Antes de la versión 1.0.11, el `serveDir` de `http/file-server` con la opción `showDirListing: true` era vulnerable a cross-site scripting cuando el atacante era un usuario que podía controlar los nombres de archivo en el directorio de origen en sistemas con nombres de archivo POSIX. La explotación también podría ser posible en otros sistemas, pero es menos trivial debido, por ejemplo, a la falta de compatibilidad de nombres de archivo para `&lt;&gt;` en Windows. La versión 1.0.11 soluciona el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-52793 changed 2024-11-26CVE Terms of Use
NVDCVE-2024-52793 changed 2026-06-17Public domain