OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated source
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 0.10.11, 3.0.1, 0.6.2, 0.3.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- OpenZeppelin contracts-wizard
fixed in 0.10.11
- @openzeppelin wizard
fixed in 0.10.11
- @openzeppelin wizard-cairo
fixed in 3.0.1
- @openzeppelin wizard-stellar
fixed in 0.6.2
- @openzeppelin wizard-stylus
fixed in 0.3.1
- @openzeppelin/wizardnpm
fixed in 0.10.11
- @openzeppelin/wizard-caironpm
fixed in 3.0.1
- @openzeppelin/wizard-stellarnpm
fixed in 0.6.2
- @openzeppelin/wizard-stylusnpm
fixed in 0.3.1