{"id":"GHSA-f8rq-m28h-8hxj","aliases":["GHSA-f8rq-m28h-8hxj"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in htmr","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T15:50:29.000Z","modified":"2020-08-31T19:01:22.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.7"}],"ecosystem":"npm","package":"htmr","purl":"pkg:npm/htmr","source":"ghsa"}],"references":[{"url":"https://hackerone.com/reports/753971","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1496","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8rq-m28h-8hxj","url":"https://github.com/advisories/GHSA-f8rq-m28h-8hxj","licence":"CC-BY-4.0","modified":"2020-08-31T19:01:22.000Z"}],"updatedAt":"2026-11-25T22:56:45.237Z"}