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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @faker-js/faker | 10.5.0 | GHSA-qxc2-j82w-r537 |
Affected products (as reported)
Weakness: CWE-95 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537 x_refsource_CONFIRM
- https://github.com/faker-js/faker/pull/3852 x_refsource_MISC
- https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7 x_refsource_MISC
- https://github.com/faker-js/faker/releases/tag/v10.5.0 x_refsource_MISC