CVE-2026-73231 Faker: helpers.fake exploitable into arbritary code execution
HighCVSS 7.8
EPSS 0.21%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Red Hat
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| faker-js faker | = < 10.5.0 | No fix listed |
| faker-js faker(npm) | <= 10.4.0 | No fix listed |
| faker-js faker(npm) | < 10.5.0 | 10.5.0 |
References
- https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537 exploit vendor-advisory
- https://github.com/faker-js/faker/pull/3852 patch
- https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7 patch
- https://github.com/faker-js/faker/releases/tag/v10.5.0
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2514353 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product