CVE-2019-5457
Description
CVE-2019-5457 describes a stored XSS in min-http-server allowing attackers with file system access to execute arbitrary JavaScript in victims' browsers.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CVE-2019-5457 describes a stored XSS in min-http-server allowing attackers with file system access to execute arbitrary JavaScript in victims' browsers.
Vulnerability
Description
CVE-2019-5457 is a cross-site scripting (XSS) vulnerability present in all versions of min-http-server. The root cause is improper neutralization of user-controllable data stored in files on the server, which when served to users is interpreted as executable script content. The official description indicates that an attacker with access to the server's file system can inject arbitrary JavaScript code that will execute in the browser of any user viewing the served content [1].
Exploitation
Prerequisites
Exploitation of this XSS requires that the attacker has write access to the server's file system, allowing them to modify or create files that are later served via the min-http-server. The attack is performed by placing malicious script content into a file accessible through the server. When a victim's browser requests that file, the injected script executes within the security context of the origin domain, bypassing same-origin policy restrictions [1].
Impact
An attacker who successfully exploits this vulnerability gains the ability to execute arbitrary JavaScript in the context of the victim's session with the min-http-server. This can lead to session hijacking, theft of cookies or authentication tokens, redirection to malicious sites, or defacement of served web pages. Because the vulnerability exists in all versions of min-http-server, the user base is broadly affected [1].
Mitigation
Status
As of the publication date (2019-07-30), no patched version of min-http-server has been released. The advisory from HackerOne (report #570568) confirms the issue but does not indicate a fix or workaround. Users should consider switching to an alternative, actively maintained HTTP server package to avoid exposure to this persistent XSS risk.
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 |
|---|---|---|
min-http-servernpm | <= 1.0.6 | — |
Affected products
2- min-http-server/min-http-serverv5Range: Not Fixed
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-j657-59rv-qwm6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-5457ghsaADVISORY
- hackerone.com/reports/570568ghsax_refsource_MISCWEB
- www.npmjs.com/advisories/1111ghsaWEB
News mentions
0No linked articles in our index yet.