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 package | Versions | Reported by |
|---|---|---|
| denoland std | < 1.0.11 | CVE List |
Classification
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 `<>` en Windows. La versión 1.0.11 soluciona el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-52793 changed 2024-11-26 | CVE Terms of Use |
| NVD | CVE-2024-52793 changed 2026-06-17 | Public domain |