@openzeppelin/wizard
Affected
- introduced
0, fixed0.10.9(semver)
Fixed versions
0.10.9
Fix
- Fixed version
0.10.9npm install @openzeppelin/[email protected]
Advisory
Also known as: CVE-2026-48054
OpenZeppelin Contracts Wizard has Code Injection in Generated Hardhat and Foundry Tests via Unsanitized opts.name / opts.uri
Summary
The OpenZeppelin Contracts Wizard generated Hardhat (test/test.ts) and Foundry (test/<Name>.t.sol) example test files that interpolated user-supplied strings (opts.name, opts.uri) into the test source without escaping. A crafted input could produce a generated test file in which the input string broke out of its surrounding literal and was parsed as code, executing when a developer ran npm test or forge test on the downloaded project.
Impact
zipHardhat, zipFoundry) are not part of the package's documented public exports.0.10.9.Patches
Fixed in @openzeppelin/[email protected].
High Basis: The source's own band: HIGH
0, fixed 0.10.9 (semver)0.10.9
0.10.9npm install @openzeppelin/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0