# GHSA-f8rq-m28h-8hxj: Cross-Site Scripting in htmr

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T15:50:29.000Z
- Modified: 2020-08-31T19:01:22.000Z
- Weaknesses: CWE-79

## 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.


## Recommendation

Upgrade to version 0.8.7 or later.

(As written by GitHub Advisory Database.)

## Affected

- htmr (npm): before 0.8.7

## References

- <https://hackerone.com/reports/753971> (web)
- <https://www.npmjs.com/advisories/1496> (web)

## Sources

- GitHub Advisory Database: [GHSA-f8rq-m28h-8hxj](https://github.com/advisories/GHSA-f8rq-m28h-8hxj), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-f8rq-m28h-8hxj · Whole record: https://cve.day/GHSA-f8rq-m28h-8hxj.json · Rebuilt by cve.day 2026-11-25T22:56:45.237Z
