---
id: CVE-2026-73231
title: Faker generates massive amounts of fake data in the browser and Node.js
summary: >-
  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
  f…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-95
vendor: faker-js
product: '@faker-js/faker'
affected:
  - '@faker-js/faker <= 10.4.0'
patched:
  - '@faker-js/faker 10.5.0'
published: '2026-08-11'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:55:04.493'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73231'
references:
  - url: >-
      https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7
    label: security-advisories@github.com
  - url: 'https://github.com/faker-js/faker/pull/3852'
    label: security-advisories@github.com
  - url: 'https://github.com/faker-js/faker/releases/tag/v10.5.0'
    label: security-advisories@github.com
  - url: 'https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537'
    label: security-advisories@github.com
  - url: 'https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73231'
  - url: 'https://github.com/advisories/GHSA-qxc2-j82w-r537'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00217
epssPercentile: 0.12421
aliases:
  - GHSA-qxc2-j82w-r537
ecosystem: npm
ingestedAt: '2026-09-02T14:45:30.555Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-73231)

Affected packages:

- `@faker-js/faker <= 10.4.0`

Patched in:

- `@faker-js/faker 10.5.0`

Source: https://github.com/advisories/GHSA-qxc2-j82w-r537
