CVE-2018-3771: statics-server Cross-site Scripting vulnerability
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.59096%
CWE
Published
5/13/2022
Updated
5/2/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
statics-server | npm | <= 0.0.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs in the directory listing generation code where user-controlled input (filenames) is directly interpolated into HTML without proper escaping. The code builds <a> tags using template literals with ${v} in both href attribute and link text. Since filenames can contain HTML metacharacters, this allows XSS payloads to be injected. The HackerOne report explicitly identifies this unescaped use of variable v
as the root cause.