{"id":"CVE-2019-12313","aliases":["EUVD-2019-0465","GHSA-gh4g-3gm9-5wrq"],"status":"published","title":"Cross-Site Scripting in shave","description":"XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.","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-10","score":0.01257,"percentile":0.69796,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2019-05-24T13:30:50Z","modified":"2026-10-20T10:50:40Z","fixes":[{"ecosystem":"npm","package":"shave","fixed_in":["2.5.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"shave","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.3"}]}]},{"source":"osv","ecosystem":"npm","package":"shave","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.5.3"}]}]}],"products":[{"vendor":"dollarshaveclub","product":"shave"}],"references":[{"url":"https://www.npmjs.com/advisories/822","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/dollarshaveclub/shave/commit/da7371b0531ba14eae48ef1bb1456a3de4cfa954#diff-074799b511e4b61923dfd3f2a3bf9b54R67","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/dollarshaveclub/shave/compare/852b537...da7371b","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-12313","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-gh4g-3gm9-5wrq"}],"sources":{"cve":[{"id":"CVE-2019-12313","description":"XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.","status":"published","published":"2019-05-24T13:30:50Z","modified":"2024-08-04T23:17:39.731Z","updated_at":"2026-11-02T14:20:23.697579Z"}],"euvd":[{"id":"EUVD-2019-0465","description":"XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.","status":"published","published":"2019-05-24T13:30:50Z","modified":"2024-08-04T23:17:39Z","updated_at":"2026-11-03T02:40:46.416719Z"}],"ghsa":[{"id":"GHSA-gh4g-3gm9-5wrq","title":"Cross-Site Scripting in shave","description":"Versions of `shave` prior to 2.5.3 are vulnerable to Cross-Site Scripting. The `shave` package overwrites HTML elements and in doing so fails to properly encode the output. If encoded HTML input is passed into `shave` the output will be decoded which may lead to Cross-Site Scripting.\n\n\n## Recommendation\n\nUpgrade to version 2.5.3 or later.","status":"published","published":"2019-05-29T18:38:08Z","modified":"2023-01-09T05:01:24Z","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"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:01.39976Z"}],"nvd":[{"id":"CVE-2019-12313","description":"XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.","status":"published","published":"2019-05-24T14:29:00.327Z","modified":"2026-06-17T02:14:25.917Z","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:14.729983Z"}],"osv":[{"id":"CVE-2019-12313","description":"XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.","status":"published","published":"2019-05-24T14:29:00.327Z","modified":"2026-10-20T10:50:40.068318586Z","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"}],"updated_at":"2026-11-02T15:44:10.718934Z"},{"id":"GHSA-gh4g-3gm9-5wrq","title":"Cross-Site Scripting in shave","description":"Versions of `shave` prior to 2.5.3 are vulnerable to Cross-Site Scripting. The `shave` package overwrites HTML elements and in doing so fails to properly encode the output. If encoded HTML input is passed into `shave` the output will be decoded which may lead to Cross-Site Scripting.\n\n\n## Recommendation\n\nUpgrade to version 2.5.3 or later.","status":"published","published":"2019-05-29T18:38:08Z","modified":"2023-11-08T04:01:03.565052Z","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"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.822182Z"}]}}
