CVE-2026-57583

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

State
Published
Severity
3.3 Low
Published
Sep 14, 2026
Updated
Sep 14, 2026
Reserved
Jun 24, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NGitHub_M

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-116 Improper Encoding or Escaping of Output

Affected Products

ProductVersions
contracts-wizardOpenZeppelin
  • < 0.10.11Affected
wizard@openzeppelin
  • < 0.10.11Affected
wizard-cairo@openzeppelin
  • < 3.0.1Affected
wizard-stellar@openzeppelin
  • < 0.6.2Affected
wizard-stylus@openzeppelin
  • < 0.3.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.