CVE-2021-23389 Arbitrary Code Execution

Critical 9.8 Published Updated

Attackers can execute arbitrary code via the U.set() and U.get() functions in the total.js library.

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

What is CVE-2021-23389?

CVE-2021-23389 is a critical code injection vulnerability in total.js, published on 12 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package total.js before 3.4.9 are vulnerable to Arbitrary Code Execution via the U.set() and U.get() functions.

Weakness: CWE-94

Which versions are affected by CVE-2021-23389?

2 open source packages ship an affected version, including total.js. It affects 1 product.

PackageAffectedFixed in
total.js npmAll versions3.4.9
total.js npmAll versions3.4.9

Products include Totaljs Total.js.

How do I fix CVE-2021-23389?

Upgrade total.js to 3.4.9 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-23389 being exploited?

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

Sources

Also known as GHSA-7fm6-gxqg-2pwr, SNYK-JS-TOTALJS-1088607.

Is CVE-2021-23389 in your software?

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

Check your SBOMs for free