Cross-site Scripting (XSS) Affecting serve-handler package, versions <5.0.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SERVEHANDLER-72615
  • published19 Nov 2018
  • disclosed29 May 2018
  • credittungpun

Introduced: 29 May 2018

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade serve-handler to version 5.0.3 or higher

Overview

serve-handler Static file serving and directory listing.

The module provides a directory listing feature in it's HTTP server which does not sanitise the filename potentially allowing a malicious payload in the filename could be used to invoke an XSS.

Details

<>

CVSS Scores

version 3.1