Eval Injection Affecting @faker-js/faker package, versions <10.5.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (6th 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 Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FAKERJSFAKER-18674671
  • published12 Aug 2026
  • disclosed11 Aug 2026
  • creditST-DDT

Introduced: 11 Aug 2026

NewCVE-2026-73231  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade @faker-js/faker to version 10.5.0 or higher.

Overview

@faker-js/faker is a Generate massive amounts of fake contextual data

Affected versions of this package are vulnerable to Eval Injection via the helpers.fake function. An attacker can execute arbitrary JavaScript code by supplying specially crafted templates that access the Function constructor through fakeEval.resolveProperty when a function returns another function.

CVSS Base Scores

version 4.0
version 3.1