Arbitrary Code Execution Affecting typed-function package, versions <0.10.6


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.79% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-TYPEDFUNCTION-174139
  • published8 Apr 2019
  • disclosed27 Nov 2017
  • creditMasato Kinugawa

Introduced: 27 Nov 2017

CVE-2017-1001004  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade typed-function to version 0.10.6 or higher.

Overview

typed-function is a library used for type checking of JavaScript functions.

Affected versions of this package are vulnerable to Arbitrary Code Execution due to the creation of a typed function with JavaScript code in the _name variable.

CVSS Scores

version 3.1