Vulnerability · Published Aug 11, 2026 · Assigned by GitHub_M

CVE-2026-73231Faker: helpers.fake exploitable into arbritary code execution

High 7.8

In plain English

A high-severity security flaw in faker from faker-js. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 88.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Faker generates massive amounts of fake data in the browser and Node.js. Prior to 10.5.0, the faker.helpers.fake method in src/modules/helpers/eval.ts allows attacker-controlled fake templates to access the Function constructor through fakeEval.resolveProperty when a function returns another function, enabling arbitrary JavaScript code execution. This issue is fixed in version 10.5.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@faker-js/faker10.5.0GHSA-qxc2-j82w-r537

Affected products (as reported)

VendorProductVersions
faker-js faker < 10.5.0

Weakness: CWE-95 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References