{"id":"CVE-2019-5422","aliases":["EUVD-2019-0421","GHSA-gm29-35c7-8cfw"],"status":"published","title":"Cross-Site Scripting in buttle","description":"XSS in buttle npm package version 0.2.0 causes execution of attacker-provided code in the victim's browser when an attacker creates an arbitrary file on the server.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01172,"percentile":0.67672,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2019-04-03T14:21:40Z","modified":"2026-06-17T02:37:39Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"buttle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.2.0"}]}]},{"source":"osv","ecosystem":"npm","package":"buttle","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.2.0"}]}]}],"products":[{"vendor":"buttle_project","product":"buttle"},{"vendor":"npm, inc.","product":"buttle"}],"references":[{"url":"https://hackerone.com/reports/331110","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5422","tags":["advisory"]},{"url":"https://hackerone.com/reports/331032","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gm29-35c7-8cfw","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/667","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1009","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2019-5422","description":"XSS in buttle npm package version 0.2.0 causes execution of attacker-provided code in the victim's browser when an attacker creates an arbitrary file on the server.","status":"published","published":"2019-04-03T14:21:40Z","modified":"2024-08-04T19:54:53.644Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:20:18.746972Z"}],"euvd":[{"id":"EUVD-2019-0421","description":"XSS in buttle npm package version 0.2.0 causes execution of attacker-provided code in the victim's browser when an attacker creates an arbitrary file on the server.","status":"published","published":"2019-04-03T14:21:40Z","modified":"2024-08-04T19:54:53Z","updated_at":"2026-11-03T03:06:52.999682Z"}],"ghsa":[{"id":"GHSA-gm29-35c7-8cfw","title":"Cross-Site Scripting in buttle","description":"All versions of `buttle` 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.","status":"published","published":"2019-04-08T15:18:38Z","modified":"2023-01-09T05:03:07Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:04.396827Z"}],"nvd":[{"id":"CVE-2019-5422","description":"XSS in buttle npm package version 0.2.0 causes execution of attacker-provided code in the victim's browser when an attacker creates an arbitrary file on the server.","status":"published","published":"2019-04-03T15:29:01.727Z","modified":"2026-06-17T02:37:39.71Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:05:09.523883Z"}],"osv":[{"id":"GHSA-gm29-35c7-8cfw","title":"Cross-Site Scripting in buttle","description":"All versions of `buttle` 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.","status":"published","published":"2019-04-08T15:18:38Z","modified":"2023-11-08T04:01:35.923002Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.822182Z"}]}}
