CVE-2018-16481 Cross-Site Scripting in html-pages
An attacker can execute malicious JavaScript in a user's browser via unsanitized paths in the html-page library.
- 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-2018-16481?
CVE-2018-16481 is a medium-severity cross-site scripting vulnerability in HackerOne html-pages, published on 1 Feb 2019. 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
A XSS vulnerability was found in html-page <=2.1.1 that allows malicious Javascript code to be executed in the user's browser due to the absence of sanitization of the paths before rendering.
Weakness: CWE-79
Which versions are affected by CVE-2018-16481?
2 open source packages ship an affected version, including html-pages. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
html-pages npm | All versions to 3.1.0 | None |
html-pages npm | All versions to 3.1.0 | None |
Products include Html-Pages Project Html-Pages.
How do I fix CVE-2018-16481?
No fix has been published for CVE-2018-16481 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-16481 being exploited?
There is no known exploitation of CVE-2018-16481 in the wild and no public exploit code.
Other vulnerabilities in HackerOne html-pages
Sources
Also known as GHSA-5p26-hw7f-3cpr.