CVE-2020-28487 Cross-site Scripting (XSS)

Medium 6.8 Published Updated

An attacker controlling timeline items can inject malicious scripts, leading to code execution in the context of the application using vis-timeline.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-28487?

CVE-2020-28487 is a medium-severity cross-site scripting vulnerability in vis-timeline, published on 22 Jan 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

This affects the package vis-timeline before 7.4.4. An attacker with the ability to control the items of a Timeline element can inject additional script code into the generated application.

Weakness: CWE-79

Which versions are affected by CVE-2020-28487?

2 open source packages ship an affected version, including vis-timeline. It affects 1 product.

PackageAffectedFixed in
vis-timeline npmAll versions7.4.4
vis-timeline npmAll versions7.4.4

Products include Visjs Vis-Timeline.

How do I fix CVE-2020-28487?

Upgrade vis-timeline to 7.4.4 or later.

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-2020-28487 being exploited?

There is no known exploitation of CVE-2020-28487 in the wild and no public exploit code.

Sources

Also known as GHSA-9mrv-456v-pf22.

Is CVE-2020-28487 in your software?

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

Check your SBOMs for free