VYPR
Moderate severityNVD Advisory· Published Jun 1, 2018· Updated Aug 5, 2024

CVE-2018-3755

CVE-2018-3755

Description

A stored XSS vulnerability in sexstatic <=0.6.2 allows HTML injection via malicious directory names that embed an element.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A stored XSS vulnerability in sexstatic <=0.6.2 allows HTML injection via malicious directory names that embed an element.

Vulnerability

A stored cross-site scripting (XSS) vulnerability exists in the npm package sexstatic versions <= 0.6.2. The bug occurs when an attacker can create or rename a directory on the server where sexstatic is used. The directory name is not properly sanitized, allowing HTML injection. Specifically, a directory name containing an `` element will be rendered unsafely by the application, leading to stored XSS. [1][2]

Exploitation

An attacker needs the ability to create or rename directories within the file system served by sexstatic. This could be achieved through write access to the server (e.g., via filesystem permissions or an accompanying file upload feature). The attacker creates a directory with a name containing malicious HTML, such as ` followed by any valid name suffix. When other users or administrators browse to the directory listing, the injected ` is rendered in their browser. No user interaction beyond navigating to the affected directory is required. [1][2]

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim's session. This can lead to session hijacking, data exfiltration, or further malicious actions within the web application's domain. The attack is stored, meaning every victim visiting the affected directory will be impacted without needing to click a crafted link. [1][2]

Mitigation

The vulnerability is addressed in versions after 0.6.2, but no specific patched version number or release date is disclosed in the available references. Users of sexstatic should upgrade to the latest version as soon as possible. If upgrading is not feasible, ensure that untrusted users cannot create or modify directories on the server, and consider sanitizing directory listings with a reverse proxy or web application firewall. [1][2]

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.

PackageAffected versionsPatched versions
sexstaticnpm
<= 0.6.2

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.