CVE-2017-0928 Bypassing Sanitization using DOM clobbering in html-janitor
Attackers can bypass HTML sanitization in html-janitor by controlling the '_sanitized' variable, potentially allowing malicious content injection.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2017-0928?
CVE-2017-0928 is a medium-severity vulnerability in HackerOne html-janitor node module, published on 4 Jun 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
html-janitor node module suffers from an External Control of Critical State Data vulnerability via user-control of the '_sanitized' variable causing sanitization to be bypassed.
Weakness: CWE-642
Which versions are affected by CVE-2017-0928?
2 open source packages ship an affected version, including html-janitor. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
html-janitor npm | All versions | None |
html-janitor npm | All versions | None |
Products include Theguardian Html-Janitor.
How do I fix CVE-2017-0928?
No fix has been published for CVE-2017-0928 yet. Limit exposure of the affected software until one is available.
Is CVE-2017-0928 being exploited?
There is no known exploitation of CVE-2017-0928 in the wild and no public exploit code.
Sources
Also known as GHSA-fx46-whrj-73v5.