{"id":"CVE-2026-73231","aliases":["GHSA-qxc2-j82w-r537"],"url":"https://o3.security/vulnerability/CVE-2026-73231","summary":"Faker: helpers.fake exploitable into arbritary code execution","details":"### Summary\n\n`faker.helpers.fake` can be tricked into arbritary code execution.\n\n### Details\n\nfakeEval.resolveProperty resolves properties on functions itself instead of resolving the nested function first.\nThis can be addressed by recursively calling resolveProperty instead of accessing the property after one iteration.\n\n### PoC\n\nGo to https://fakerjs.dev/\nOpen Browser console and run\n\n````ts\nawait enableFaker(); // or import faker\nfaker.rawDefinitions.test = (() => () => {}); // Any function that returns a function\nfaker.helpers.fake(`{{test.constructor(alert('PowerLevel: Eval'))}}`);\n````\n\n### Impact\n\nThe Fake method claims:\n\n> It is also NOT possible to use any non-faker methods or plain javascript in such patterns.\n\nWhich is objectively false, since any global gets fully accessible in the fake string.","published":"2026-08-11T19:28:44.943Z","modified":"2026-09-11T03:30:49.383158948Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"@faker-js/faker","fixedVersion":"10.5.0"}],"fix":{"url":"https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7","label":"faker-js/faker@5458620"},"references":[{"type":"WEB","url":"https://github.com/faker-js/faker/releases/tag/v10.5.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73231.json"},{"type":"ADVISORY","url":"https://github.com/faker-js/faker/security/advisories/GHSA-qxc2-j82w-r537"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73231"},{"type":"FIX","url":"https://github.com/faker-js/faker/commit/54586208f904012f57c50b46cc1ad32bcbe4bfb7"},{"type":"FIX","url":"https://github.com/faker-js/faker/pull/3852"},{"type":"PACKAGE","url":"https://github.com/faker-js/faker"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-11T03:30:49.383158948Z"}}