{"id":"GHSA-f8rq-m28h-8hxj","summary":"Cross-Site Scripting in htmr","details":"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.","modified":"2020-08-31T19:01:22Z","published":"2020-09-03T15:50:29Z","database_specific":{"github_reviewed_at":"2020-08-31T19:01:22Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://hackerone.com/reports/753971"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1496"}],"affected":[{"package":{"name":"htmr","ecosystem":"npm","purl":"pkg:npm/htmr"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-f8rq-m28h-8hxj/GHSA-f8rq-m28h-8hxj.json"}}],"schema_version":"1.9.0"}