{"answers":{"affected":"2 open source packages ship an affected version, including @faker-js/faker.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73231 exists.","fix":"Upgrade @faker-js/faker to 10.5.0 or later.","what":"CVE-2026-73231 is a high-severity code injection vulnerability in faker-js faker, published on 11 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-73231 and fix it if it is affected.\n\nWhat it is: CVE-2026-73231 is a high-severity code injection vulnerability in faker-js faker, published on 11 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73231 exists.\n\nAffected packages and fixed versions:\n- @faker-js/faker (npm): affected all versions; fixed in 10.5.0\n- @faker-js/faker (npm): affected all versions; fixed in 10.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-73231/ (Markdown: https://insights.sbomify.com/CVE-2026-73231/index.md)","id":"CVE-2026-73231","markdown":"https://insights.sbomify.com/CVE-2026-73231/index.md","name":"CVE-2026-73231","record":{"aliases":["CLSA-2026-1793299902","CLSA-2026-1793301523","GHSA-qxc2-j82w-r537","ROOT-APP-NPM-CVE-2026-73231"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript fake data library","requires_auth":"low_privilege","summary":"Attacker-controlled templates in Faker's helpers.fake method allow arbitrary JavaScript code execution via Function constructor access.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Faker: helpers.fake exploitable into arbritary code execution","id":"CVE-2026-73231","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"ffuf denial of service (OOM) via HTTP response decompression bomb","id":"CVE-2026-73232"},"packages":[{"ecosystem":"npm","fixed":["10.5.0"],"introduced":["0"],"last_affected":[],"package":"@faker-js/faker","purl":null,"source":"GHSA-qxc2-j82w-r537"},{"ecosystem":"npm","fixed":["10.5.0"],"introduced":["0"],"last_affected":[],"package":"@faker-js/faker","purl":"pkg:npm/%40faker-js/faker","source":"GHSA-qxc2-j82w-r537"}],"prev":{"headline":"Ente: 2of3 cards v1 contain a checksum that enables offline guessing of low-entropy secrets","id":"CVE-2026-73230"},"products":["faker"],"published":"2026-08-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["faker-js"]},"summary":"Attacker-controlled templates in Faker's helpers.fake method allow arbitrary JavaScript code execution via Function constructor access.","url":"https://insights.sbomify.com/CVE-2026-73231/"}