{"answers":{"affected":"2 open source packages ship an affected version, including @openzeppelin/wizard.","exploited":"There is no known exploitation of CVE-2026-48054 in the wild and no public exploit code.","fix":"Upgrade @openzeppelin/wizard to 0.10.9 or later.","what":"CVE-2026-48054 is a high-severity code injection vulnerability in OpenZeppelin contracts-wizard, published on 6 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-48054 and fix it if it is affected.\n\nWhat it is: CVE-2026-48054 is a high-severity code injection vulnerability in OpenZeppelin contracts-wizard, published on 6 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-48054 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @openzeppelin/wizard (npm): affected all versions; fixed in 0.10.9\n- @openzeppelin/wizard (npm): affected all versions; fixed in 0.10.9\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-48054/ (Markdown: https://insights.sbomify.com/CVE-2026-48054/index.md)","id":"CVE-2026-48054","markdown":"https://insights.sbomify.com/CVE-2026-48054/index.md","name":"CVE-2026-48054","record":{"aliases":["GHSA-4x76-22x2-rx8v"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenZeppelin Contracts Wizard","requires_auth":"none","summary":"Attackers can inject malicious code into generated test files via unsanitized inputs, leading to remote code execution on developers' machines when tests are run.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"OpenZeppelin Contracts Wizard is a web application to interactively build a contract out of components from OpenZeppelin Contracts. Versions prior to 0.10.9 generate a Hardhat test file (`test/test.ts`) by interpolating user-supplied `opts.name` (ERC20/ERC721) and `opts.uri` (ERC1155) directly into TypeScript string literals at `zip-hardhat.ts:48` and `:50` without any JavaScript string escaping. No authentication is required: an attacker crafts a URL such as `https[:]//wizard[.]openzeppelin[.]com/#/erc20?name=\");require(\"child_process\").execSync(\"...\");(\"` and shares it with a developer. When the victim downloads the resulting zip archive and runs `npx hardhat test`, the injected Node.js code executes with the developer's local OS privileges. Version 0.10.9 fixes the issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OpenZeppelin Contracts Wizard has Code Injection in Generated Hardhat and Foundry Tests via Unsanitized opts.name / opts.uri","id":"CVE-2026-48054","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Streambert: Arbitrary File Write (Zip Slip) via Subtitle Extraction","id":"CVE-2026-48055"},"packages":[{"ecosystem":"npm","fixed":["0.10.9"],"introduced":["0"],"last_affected":[],"package":"@openzeppelin/wizard","purl":null,"source":"GHSA-4x76-22x2-rx8v"},{"ecosystem":"npm","fixed":["0.10.9"],"introduced":["0"],"last_affected":[],"package":"@openzeppelin/wizard","purl":"pkg:npm/%40openzeppelin/wizard","source":"GHSA-4x76-22x2-rx8v"}],"prev":{"headline":"Kolibri has Unauthenticated Server-Side Request Forgery (SSRF) in RemoteFacilityUserViewset","id":"CVE-2026-48053"},"products":["contracts-wizard"],"published":"2026-08-06","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-14","vendors":["OpenZeppelin"]},"summary":"Attackers can inject malicious code into generated test files via unsanitized inputs, leading to remote code execution on developers' machines when tests are run.","url":"https://insights.sbomify.com/CVE-2026-48054/"}