Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-48054— OpenZeppelin Contracts Wizard has Code Injection in Generated Hardhat and Foundry Tests via Unsanitized opts.name / opts.uri

Quick assessment

Affected
OpenZeppelin contracts-wizard
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

OpenZeppelin Contracts Wizard是OpenZeppelin组织的一款智能合约生成工具。 OpenZeppelin Contracts Wizard 0.10.9之前版本存在代码注入漏洞,该漏洞源于生成Hardhat测试文件时将用户提供的opts.name和opts.uri直接插入TypeScript字符串字面量,未进行JavaScript字符串转义,可能导致攻击者注入并执行任意Node.js代码。

CVSS 8.8 · High EPSS 0.64% · P49

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
OpenZeppelin contracts-wizard < 0.10.9 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-48054

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
OpenZeppelin Contracts Wizard has Code Injection in Generated Hardhat and Foundry Tests via Unsanitized opts.name / opts.uri
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
OpenZeppelin Contracts Wizard 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
OpenZeppelin Contracts Wizard是OpenZeppelin组织的一款智能合约生成工具。 OpenZeppelin Contracts Wizard 0.10.9之前版本存在代码注入漏洞,该漏洞源于生成Hardhat测试文件时将用户提供的opts.name和opts.uri直接插入TypeScript字符串字面量,未进行JavaScript字符串转义,可能导致攻击者注入并执行任意Node.js代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
OpenZeppelin contracts-wizard < 0.10.9 -

II. Public POCs for CVE-2026-48054

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8975 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-48054

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-48054 (1)

Vendor Advisories for CVE-2026-48054 (1)

Vendor Pages for CVE-2026-48054 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-48054

No comments yet


Leave a comment