Skip to main content
VulnerabilityPublished Updated

CVE-2026-48054: OpenZeppelin contracts-wizard · Code Injection

Affects OpenZeppelin contracts-wizardSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.8 High : upgrade to 0.10.9 soon.

Data as of 5 Nov 2026, 00:01 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.10.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.

What to do

Upgrade OpenZeppelin contracts-wizard to 0.10.9.

Affected software

ProductAffectedFixed in
OpenZeppelincontracts-wizardAffected
  • <0.10.9
Fixed in
  • 0.10.9

AI-suggested

Upgrade to OpenZeppelin contracts-wizard version 0.10.9 or later, which fixes this code injection vulnerability by properly escaping user inputs in generated test files. Until upgrading, avoid running Hardhat tests generated from untrusted or suspicious URLs. There is no vendor advisory explicitly stating no action is required or that the issue is already mitigated, so applying the official fix is recommended.

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.

References

Community reviews

Loading reviews…