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.
Published: 2026-08-11
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The faker.helpers.fake method in older versions of the faker-js:faker library allowed attacker‑controlled fake templates to invoke the JavaScript Function constructor through the fakeEval.resolveProperty helper. This enabled the execution of arbitrary JavaScript code when a function returned another function. The issue is a classic code‑injection flaw (CWE‑94 and CWE‑95) and can lead to full compromise of the JavaScript environment in which Faker is executed.

Affected Systems

Any Node.js or browser application that imports faker-js:faker prior to version 10.5.0 and uses the helpers.fake API is affected. Versions prior to 10.5.0 are vulnerable; all releases starting with 10.5.0 contain the fix.

Risk and Exploitability

The CVSS score of 7.8 assigns high severity. The EPSS score of less than 1% suggests a very low likelihood of real‑world exploitation, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be template injection: an attacker must supply a malicious fake template string or otherwise influence the template passed to helpers.fake, which is then evaluated with the Function constructor. No external network channel is required, so the vulnerability is likely limited to contexts where template strings can be injected or crafted by an attacker.

Generated by OpenCVE AI on August 14, 2026 at 01:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade faker-js:faker to version 10.5.0 or later.
  • Avoid using the helpers.fake API in production or replace it with safer data‑generation routines.
  • If upgrading immediately is not possible, remove any attacker‑controllable input from the parameters passed to helpers.fake or sandbox the evaluation context to prevent access to the Function constructor.

Generated by OpenCVE AI on August 14, 2026 at 01:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
References
Metrics threat_severity

None

threat_severity

Important


Thu, 13 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Faker-js
Faker-js faker
Vendors & Products Faker-js
Faker-js faker

Tue, 11 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
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.
Title Faker: helpers.fake exploitable into arbritary code execution
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T14:41:25.803Z

Reserved: 2026-08-11T14:41:20.123Z

Link: CVE-2026-73231

cve-icon Vulnrichment

Updated: 2026-08-13T14:41:21.971Z

cve-icon NVD

Status : Received

Published: 2026-08-11T20:18:48.400

Modified: 2026-08-13T15:20:11.133

Link: CVE-2026-73231

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-11T19:28:44Z

Links: CVE-2026-73231 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T01:45:08Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')