CVE-2026-48054
Received Received - Intake

Command Injection in OpenZeppelin Contracts Wizard

Vulnerability report for CVE-2026-48054, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-06

Last updated on: 2026-08-06

Assigner: GitHub, Inc.

Description

OpenZeppelin Contracts Wizardis 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-06
Last Modified
2026-08-06
Generated
2026-08-07
AI Q&A
2026-08-07
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
openzeppelin contracts_wizard to 0.10.9 (exc)
openzeppelin contracts_wizard 0.10.9

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in OpenZeppelin Contracts Wizard versions before 0.10.9. It allows an attacker to inject malicious JavaScript code into a Hardhat test file by manipulating user-supplied inputs like contract names or URIs. When a victim downloads and runs the generated test file, the injected code executes with the developer's local OS privileges.

Detection Guidance

Check if OpenZeppelin Contracts Wizard version is prior to 0.10.9 by inspecting the installed package version or examining the generated test files for suspicious string interpolations in Hardhat test files.

Impact Analysis

If you use a vulnerable version of OpenZeppelin Contracts Wizard, an attacker could trick you into downloading a malicious zip archive. Running the included test file could execute arbitrary commands on your system with your user privileges, potentially leading to data theft, system compromise, or further network attacks.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating GDPR's data protection requirements or HIPAA's security rules. If exploited, it may result in data breaches, triggering compliance violations, legal penalties, and reputational damage for affected organizations.

Mitigation Strategies

Upgrade OpenZeppelin Contracts Wizard to version 0.10.9 or later. Avoid downloading or running test files from untrusted sources. Review generated test files for unexpected code injections before execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48054. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart