highCVSS 7.8Vulnerability

CVE-2026-73231

### Summary `faker.helpers.fake` can be tricked into arbritary code execution. ### Details fakeEval.resolveProperty resolves properties on functions itself instead of resolving the nested function first. This can be addressed by recursively calling resolveProperty instead of accessing the property after one iteration. ### PoC Go to https://fakerjs.dev/ Open Browser console and run ````ts await enableFaker(); // or import faker faker.rawDefinitions.test = (() => () => {}); // Any function that returns a function faker.helpers.fake(`{{test.constructor(alert('PowerLevel: Eval'))}}`); ```` ### Impact The Fake method claims: > It is also NOT possible to use any non-faker methods or plain javascript in such patterns. Which is objectively false, since any global gets fully accessible in the fake string.

Properties

ghsa_id
GHSA-qxc2-j82w-r537
severity
high
summary
Faker: helpers.fake exploitable into arbritary code execution
cvss_score
7.8
cve_id
CVE-2026-73231
cvss_vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
is_ghsa_only
false
ghsa_published
2026-09-02T14:20:14Z
source_url
https://github.com/advisories/GHSA-qxc2-j82w-r537
ghsa_updated
2026-09-02T14:20:15Z

Related Entities (4)

VULNERABLE_TO (1)

[Software]npm/@faker-js/faker

AFFECTS (1)

[Software]npm/@faker-js/faker

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-73231 (CVSS 7.8) — Ninja Signal Threat Intelligence | Ninja Signal