{"id":"GHSA-f8rq-m28h-8hxj","aliases":[],"status":"published","title":"Cross-Site Scripting in htmr","description":"Versions of `htmr` prior to 0.8.7 are vulnerable to Cross-Site Scripting (XSS).  The package uses `innerHTML` to unescape HTML entities. This may lead to [DOM-based XSS](https://owasp.org/www-community/attacks/DOM_Based_XSS) through HTML-encoded XSS payloads. This may allow an attacker to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 0.8.7 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-03T15:50:29Z","modified":"2023-01-09T05:04:05Z","fixes":[{"ecosystem":"npm","package":"htmr","fixed_in":["0.8.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"htmr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.7"}]}]},{"source":"osv","ecosystem":"npm","package":"htmr","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.7"}]}]}],"references":[{"url":"https://hackerone.com/reports/753971","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1496","tags":["web"]},{"url":"https://github.com/advisories/GHSA-f8rq-m28h-8hxj"}],"sources":{"ghsa":[{"id":"GHSA-f8rq-m28h-8hxj","title":"Cross-Site Scripting in htmr","description":"Versions of `htmr` prior to 0.8.7 are vulnerable to Cross-Site Scripting (XSS).  The package uses `innerHTML` to unescape HTML entities. This may lead to [DOM-based XSS](https://owasp.org/www-community/attacks/DOM_Based_XSS) through HTML-encoded XSS payloads. This may allow an attacker to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 0.8.7 or later.","status":"published","published":"2020-09-03T15:50:29Z","modified":"2023-01-09T05:04:05Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:08.267721Z"}],"osv":[{"id":"GHSA-f8rq-m28h-8hxj","title":"Cross-Site Scripting in htmr","description":"Versions of `htmr` prior to 0.8.7 are vulnerable to Cross-Site Scripting (XSS).  The package uses `innerHTML` to unescape HTML entities. This may lead to [DOM-based XSS](https://owasp.org/www-community/attacks/DOM_Based_XSS) through HTML-encoded XSS payloads. This may allow an attacker to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 0.8.7 or later.","status":"published","published":"2020-09-03T15:50:29Z","modified":"2020-08-31T19:01:22Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:46.006631Z"}]}}
