Faker
Faker: helpers.fake exploitable into arbritary code execution
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-95
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
faker-js faker
- < 10.5.0
Fixed in 10.5.0
Mitigation
Upgrade faker to 10.5.0 or later.
References
- Vendor advisory github.com/faker-js/faker/security/advisories/…
- Patch github.com/faker-js/faker/pull/3852
- Patch github.com/faker-js/faker/commit/54586208f9040…
1 more
- Release notes github.com/faker-js/faker/releases/tag/v10.5.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.