{ "schema_version": "1.4.0", "id": "GHSA-7j93-2h6r-hm49", "modified": "2023-02-01T09:19:41Z", "published": "2019-07-31T04:22:36Z", "aliases": [ "CVE-2019-5458" ], "summary": "Cross-Site Scripting in http-file-server", "details": "All versions of `http-file-server` are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize filenames, allowing attackers to execute arbitrary JavaScript in the victim's browser through files with names containing malicious code.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "http-file-server" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "last_affected": "0.2.6" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-5458" }, { "type": "WEB", "url": "https://hackerone.com/reports/570563" }, { "type": "WEB", "url": "https://www.npmjs.com/advisories/1110" } ], "database_specific": { "cwe_ids": [ "CWE-79" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2019-07-31T03:41:20Z", "nvd_published_at": "2019-07-30T21:15:00Z" } }