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

Published Nov 22, 2024
·
Updated

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 Software

2 affected components
Deno Standard Library<1.0.11
Deno @std/http/file-server<1.0.11

Event History

Nov 22, 2024
CVE Published
via MITRE·03:37 PM
Data Sourced
via MITRE·03:37 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-52793?

CVE-2024-52793 is considered a moderate severity vulnerability due to its potential for cross-site scripting attacks.

2

How do I fix CVE-2024-52793?

To fix CVE-2024-52793, upgrade the Deno Standard Library and @std/http/file-server to version 1.0.11 or later.

3

What type of vulnerability is CVE-2024-52793?

CVE-2024-52793 is a cross-site scripting (XSS) vulnerability affecting the file-server functionality of the Deno Standard Library.

4

Who is affected by CVE-2024-52793?

CVE-2024-52793 affects users of the Deno Standard Library version prior to 1.0.11 and those utilizing the serveDir feature.

5

What causes CVE-2024-52793?

CVE-2024-52793 arises from the lack of proper sanitization of file names, allowing an attacker to inject malicious scripts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203