CVE-2018-3771
Description
statics-server <=0.0.9 suffers from an XSS vulnerability via injected iframe in filename when directory index is displayed.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
statics-server <=0.0.9 suffers from an XSS vulnerability via injected iframe in filename when directory index is displayed.
Vulnerability
statics-server versions prior to and including 0.0.9 contain a stored cross-site scripting (XSS) vulnerability. When the server serves a directory index in the browser, the filename is not sanitized. An attacker can inject an HTML iframe element into a filename, causing arbitrary script execution in the context of the application [1].
Exploitation
An attacker with the ability to create or rename files in a directory served by statics-server can craft a filename containing an iframe tag (e.g., test.html). When a victim browses the directory listing, the unsanitized filename is rendered in the page, and the injected iframe executes in the victim's browser. No additional user interaction beyond visiting the directory index is required [1].
Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim's browser session. This can lead to session hijacking, data exfiltration, or other client-side attacks. The scope of compromise is limited to the user's interaction with the directory index page, but the attacker does not need to be authenticated [1].
Mitigation
Users should upgrade to a patched version of statics-server beyond 0.0.9. As of the referenced advisory, no fix version has been explicitly released; the vendor was notified via HackerOne. As a workaround, administrators can disable directory listing or implement reverse-proxy filtering of directory index responses [1].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
statics-servernpm | <= 0.0.9 | — |
Affected products
2- HackerOne/statics-serverv5Range: 0.0.9
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-393x-fr59-r8fgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-3771ghsaADVISORY
- hackerone.com/reports/355458ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.