CVE-2026-73231: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in faker-js faker
CVE-2026-73231 is a high-severity vulnerability in faker-js faker prior to version 10.5.0. The faker.helpers.fake method allows attacker-controlled templates to access the Function constructor via fakeEval.resolveProperty when a function returns another function, enabling arbitrary JavaScript code execution. This issue is fixed in version 10.5.0.
AI Analysis
Technical Summary
The vulnerability in faker-js faker involves improper neutralization of directives in dynamically evaluated code (Eval Injection, CWE-95). Specifically, the faker.helpers.fake method in src/modules/helpers/eval.ts permits crafted fake templates controlled by an attacker to reach the Function constructor through fakeEval.resolveProperty when a function returns another function. This allows execution of arbitrary JavaScript code in the context where faker is used. The flaw affects versions prior to 10.5.0 and is resolved in 10.5.0.
Potential Impact
Successful exploitation allows an attacker with limited privileges (local access) to execute arbitrary JavaScript code, potentially leading to full compromise of confidentiality, integrity, and availability of the affected system or application using faker-js faker prior to 10.5.0.
Mitigation Recommendations
Upgrade to faker-js faker version 10.5.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated but the fix is included in version 10.5.0.
CVE-2026-73231: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in faker-js faker
Description
CVE-2026-73231 is a high-severity vulnerability in faker-js faker prior to version 10.5.0. The faker.helpers.fake method allows attacker-controlled templates to access the Function constructor via fakeEval.resolveProperty when a function returns another function, enabling arbitrary JavaScript code execution. This issue is fixed in version 10.5.0.
CVSS v3.1
Score 7.8high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in faker-js faker involves improper neutralization of directives in dynamically evaluated code (Eval Injection, CWE-95). Specifically, the faker.helpers.fake method in src/modules/helpers/eval.ts permits crafted fake templates controlled by an attacker to reach the Function constructor through fakeEval.resolveProperty when a function returns another function. This allows execution of arbitrary JavaScript code in the context where faker is used. The flaw affects versions prior to 10.5.0 and is resolved in 10.5.0.
Potential Impact
Successful exploitation allows an attacker with limited privileges (local access) to execute arbitrary JavaScript code, potentially leading to full compromise of confidentiality, integrity, and availability of the affected system or application using faker-js faker prior to 10.5.0.
Mitigation Recommendations
Upgrade to faker-js faker version 10.5.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated but the fix is included in version 10.5.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-11T14:41:20.123Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7b7e92bf8831d53953eca8
Added to database: 08/11/2026, 19:57:06 UTC
Last enriched: 08/11/2026, 20:11:07 UTC
Last updated: 08/11/2026, 20:16:22 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.