{"id":"GHSA-8p5p-ff7x-hw7q","summary":"Cross-Site Scripting in public","details":"Versions of `public` prior to 0.1.4 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\nUpgrade to version 0.1.4 or later.","aliases":["CVE-2018-3747"],"modified":"2023-11-08T04:00:18.656925Z","published":"2018-10-10T17:27:58Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:26:09Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3747"},{"type":"WEB","url":"https://hackerone.com/reports/316346"},{"type":"WEB","url":"https://hackerone.com/reports/329950"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8p5p-ff7x-hw7q"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1000"}],"affected":[{"package":{"name":"public","ecosystem":"npm","purl":"pkg:npm/public"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/10/GHSA-8p5p-ff7x-hw7q/GHSA-8p5p-ff7x-hw7q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}