# CVE-2024-52793: XSS vulnerability in serveDir API of @std/http/file-server on POSIX systems

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-11-22T15:37:10.829Z
- Modified: 2026-06-17T08:07:38.410Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- denoland std: < 1.0.11

## References

- <https://github.com/denoland/std/security/advisories/GHSA-32fx-h446-h8pf>
- <https://github.com/denoland/std/blob/065296ca5a05a47f9741df8f99c32fae4f960070/http/file_server.ts#L507>
- <https://github.com/denoland/std/blob/065296ca5a05a47f9741df8f99c32fae4f960070/http/file_server.ts#L532>

## Sources

- CVE List: [CVE-2024-52793](https://www.cve.org/CVERecord?id=CVE-2024-52793), CVE Terms of Use, modified 2024-11-26
- NVD: [CVE-2024-52793](https://nvd.nist.gov/vuln/detail/CVE-2024-52793), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52793 · Whole record: https://cve.day/CVE-2024-52793.json · Rebuilt by cve.day 2026-11-25T22:58:49.087Z
