Skip to content

CVE-2026-57583 OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated source

LowCVSS 3.3 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

OpenZeppelin Contracts Wizard is a web application to interactively build a contract out of components from OpenZeppelin Contracts. Prior to @openzeppelin/wizard 0.10.11, @openzeppelin/wizard-cairo 3.0.1, @openzeppelin/wizard-stellar 0.6.2, and @openzeppelin/wizard-stylus 0.3.1, the setInfo code path prints info.securityContact and info.license verbatim into single-line comments in generated Solidity, Cairo, Stellar/Soroban, and Stylus source. A line terminator ends the comment and causes following input to be emitted as source declarations. Exploitation requires an integration to populate these fields from untrusted input and a user to consume the generated source; normal self-service web, AI assistant, CLI, and self-hosted API use does not cross that trust boundary, shared links cannot set the fields, and no code executes on a Wizard service. This issue affects generated-source integrity only and is fixed in versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1 of the respective packages.

Upgrade path

9 packages: 4 fixed.

PackageAffectedFixed inStatus
openzeppelin wizard(npm) < 0.10.11 0.10.11 Fixed
openzeppelin wizard-cairo(npm) < 3.0.1 3.0.1 Fixed
openzeppelin wizard-stellar(npm) < 0.6.2 0.6.2 Fixed
openzeppelin wizard-stylus(npm) < 0.3.1 0.3.1 Fixed
openzeppelin contracts-wizard = < 0.10.11 No fix listed Versions listed
openzeppelin wizard = < 0.10.11 No fix listed Versions listed
openzeppelin wizard-cairo = < 3.0.1 No fix listed Versions listed
openzeppelin wizard-stellar = < 0.6.2 No fix listed Versions listed
openzeppelin wizard-stylus = < 0.3.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
openzeppelin contracts-wizard = < 0.10.11 No fix listed
openzeppelin wizard = < 0.10.11 No fix listed
openzeppelin wizard-cairo = < 3.0.1 No fix listed
openzeppelin wizard-stellar = < 0.6.2 No fix listed
openzeppelin wizard-stylus = < 0.3.1 No fix listed
openzeppelin wizard(npm) < 0.10.11 0.10.11
openzeppelin wizard-cairo(npm) < 3.0.1 3.0.1
openzeppelin wizard-stellar(npm) < 0.6.2 0.6.2
openzeppelin wizard-stylus(npm) < 0.3.1 0.3.1

References