CVE-2024-52793CWE-79

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

Medium · published November 22, 2024

CVSS v4.0
5.1
EPSS
1%
Percentile
48.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.1 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
EPSS
0.00612 · 48.7th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2024-11-22T15:37Z
EPSS history
Timeline
  • 22 NOV 15:37Z
    XSS vulnerability in serveDir API of @std/http/file-server on POSIX systems
    cvelistv5