CVE-2020-15092 Stored XSS in TimelineJS3

High 7.2 Published Updated

Attackers can inject malicious scripts via crafted timeline data, leading to code execution in victim browsers.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-15092?

CVE-2020-15092 is a high-severity cross-site scripting vulnerability in NUKnightLab TimelineJS3, published on 9 Jul 2020. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

In TimelineJS before version 3.7.0, some user data renders as HTML. An attacker could implement an XSS exploit with maliciously crafted content in a number of data fields. This risk is present whether the source data for the timeline is stored on Google Sheets or in a JSON configuration file. Most TimelineJS users configure their timeline with a Google Sheets document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if they grant public write access to the document. Some TimelineJS users configure their timeline with a JSON document. Those users are exposed to this vulnerability if they grant write access to the document to a malicious inside attacker, if the access of a trusted user is compromised, or if write access to the system hosting that document is otherwise compromised. Version 3.7.0 of TimelineJS addresses this in two ways. For content which is intended to support limited HTML markup for styling and linking, that content is "sanitized" before being added to the DOM. For content intended for simple text display, all markup is stripped. Very few users of TimelineJS actually install the TimelineJS code on their server. Most users publish a timeline using a URL hosted on systems we control. The fix for this issue is published to our system such that **those users will automatically begin using the new code**. The only exception would be users who have deliberately edited the embed URL to "pin" their timeline to an earlier version of the code. Some users of TimelineJS use it as a part of a wordpress plugin (knight-lab-timelinejs). Version 3.7.0.0 of that plugin and newer integrate the updated code. Users are encouraged to update the plugin rather than manually update the embedded version of TimelineJS.

Weakness: CWE-79

Which versions are affected by CVE-2020-15092?

2 open source packages ship an affected version, including @knight-lab/timelinejs. It affects 1 product.

PackageAffectedFixed in
@knight-lab/timelinejs npmAll versions3.7.0
@knight-lab/timelinejs npmAll versions3.7.0

Products include Northwestern Timelinejs.

How do I fix CVE-2020-15092?

Upgrade @knight-lab/timelinejs to 3.7.0 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-15092 being exploited?

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

Sources

Also known as GHSA-2jpm-827p-j44g.

Is CVE-2020-15092 in your software?

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

Check your SBOMs for free