@openzeppelin/wizard
Affected
- introduced
0, fixed0.10.11(semver)
Fixed versions
0.10.11
Fix
- Fixed version
0.10.11npm install @openzeppelin/[email protected]
Advisory
Also known as: CVE-2026-57583
OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated source
Summary
The Contracts Wizard generators printed info.securityContact and info.license verbatim into a single-line comment of the generated Solidity, Cairo, Stellar/Soroban, and Stylus source without rejecting line terminators. A newline (\n or \r\n) in either field ends the comment, so the text after it is emitted as source rather than remaining inside the comment — allowing arbitrary declarations to be injected into the generated contract.
Impact
This only matters when these fields are filled from input other than the user who will use the generated contract. Normal self-service use does not meet that condition:
The case that matters is an integration that fills these fields from untrusted input — for example, an MCP agent whose tool arguments are derived from content it processed. There, a newline in the value can add lines to output that otherwise looks like normal Wizard source. Impact is integrity-only; there is no execution on any Wizard service.
Patches
Fixed by rejecting line terminators in setInfo — the single code path all surfaces use — so the value can no longer break out of the comment. Upgrade to the patched versions. @openzeppelin/wizard-confidential and @openzeppelin/wizard-uniswap-hooks reuse this setInfo through their @openzeppelin/wizard dependency and receive the fix once that dependency is updated to a patched version.
Low Basis: The source's own band: LOW
0, fixed 0.10.11 (semver)0.10.11
0.10.11npm install @openzeppelin/[email protected]0, fixed 3.0.1 (semver)3.0.1
3.0.1npm install @openzeppelin/[email protected]0, fixed 0.6.2 (semver)0.6.2
0.6.2npm install @openzeppelin/[email protected]0, fixed 0.3.1 (semver)0.3.1
0.3.1npm 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