CVE-2020-15119 DOM-based XSS in auth0-lock

Medium 6.4 Published Updated

An attacker can execute arbitrary scripts in the victim's browser via DOM-based XSS in the Auth0 Lock library.

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-15119?

CVE-2020-15119 is a medium-severity cross-site scripting vulnerability in auth0 lock, published on 19 Aug 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In auth0-lock versions before and including 11.25.1, dangerouslySetInnerHTML is used to update the DOM. When dangerouslySetInnerHTML is used, the application and its users might be exposed to cross-site scripting (XSS) attacks.

Weakness: CWE-79

Which versions are affected by CVE-2020-15119?

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

PackageAffectedFixed in
auth0-lock npmAll versions11.26.3
auth0-lock npmAll versions11.26.3

Products include Auth0 Lock.

How do I fix CVE-2020-15119?

Upgrade auth0-lock to 11.26.3 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-15119 being exploited?

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

Sources

Also known as GHSA-6gg3-pmm7-97xc.

Is CVE-2020-15119 in your software?

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

Check your SBOMs for free