CVE-2018-16481 Cross-Site Scripting in html-pages

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
html-pages npmAll versions to 3.1.0None
html-pages npmAll versions to 3.1.0None

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.

Sources

Also known as GHSA-5p26-hw7f-3cpr.

Is CVE-2018-16481 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free