CVE-2017-1001004 Arbitrary JavaScript Execution in typed-function

High 8.8 Published Updated

Attackers can execute arbitrary code by injecting JavaScript into the name of a typed function in the typed-function 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
Available

What is CVE-2017-1001004?

CVE-2017-1001004 is a high-severity code injection vulnerability in typed-function, published on 27 Nov 2017. 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

typed-function before 0.10.6 had an arbitrary code execution in the JavaScript engine. Creating a typed function with JavaScript code in the name could result arbitrary execution.

Weakness: CWE-20, CWE-94

Which versions are affected by CVE-2017-1001004?

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

PackageAffectedFixed in
typed-function npmAll versions0.10.6
typed-function npmAll versions0.10.6

Products include Typed Function Project Typed Function.

How do I fix CVE-2017-1001004?

Upgrade typed-function to 0.10.6 or later.

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

Is CVE-2017-1001004 being exploited?

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

Sources

Also known as GHSA-3qh4-r86r-grvm.

Is CVE-2017-1001004 in your software?

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

Check your SBOMs for free