Faker: helpers.fake exploitable into arbritary code execution
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-95.
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 fakeEval.resolveProperty when a function returns another function, enabling arbitrary JavaScript code execution. This issue is fixed in version 10.5.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| faker-js | faker | before 10.5.0 | 10.5.0 | Patch available | CNA |
| — | @faker-js/faker (npm) | before 10.5.0 | 10.5.0 | Patch available | GHSA-qxc2-j82w-r537 |
- faker Vendorfaker-js Affected before 10.5.0 Fixed in 10.5.0 Patch available CNA
- @faker-js/faker (npm) Vendor— Affected before 10.5.0 Fixed in 10.5.0 Patch available GHSA-qxc2-j82w-r537
Remediation
- Fix · CNA faker (faker-js) Fixed in 10.5.0
- Fix · GHSA-qxc2-j82w-r537 @faker-js/faker (npm) Fixed in 10.5.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 7 products
- Cryostat 4
- Red Hat AMQ Broker 7
- Red Hat Build of Keycloak
- Red Hat Enterprise Linux 10
- Red Hat Hardened Images
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
Timeline
- 2026-10-02 Threatist record created from CVE-2026-73231
- 2026-10-03 Alias added: GHSA-qxc2-j82w-r537
References
Sources
- CVE-2026-73231 · CVE Program
- CVE-2026-73231 · NVD
- FIRST EPSS
- GHSA-qxc2-j82w-r537 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-73231 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences