Cross-site Scripting (XSS) Affecting serve-index package, versions <1.6.3


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.11% (46th percentile)

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 IDnpm:serve-index:20150314
  • published13 Mar 2015
  • disclosed13 Mar 2015
  • creditIvan Kozik

Introduced: 13 Mar 2015

CVE-2015-8856  (opens in a new tab)
CWE-80  (opens in a new tab)

How to fix?

Upgrade to version 1.6.3 or greater

Overview

serve-index Serves pages that contain directory listings for a given path.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) attacks. When using serve-index middleware, file and directory names are not escaped in HTML output. If a remote attcker can influence these names, it may trigger a persistent XSS attack.

Details

<>

References

CVSS Scores

version 3.1