OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated source
Summary
| CVE | CVE-2026-57583 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-14 18:17:58 UTC |
| Updated | 2026-09-14 19:17:37 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 3.3 LOW from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Problem Types: CWE-94 | CWE-116 | CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection') | CWE-116 CWE-116: Improper Encoding or Escaping of Output
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 3.3 | LOW | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| 3.1 | CNA | DECLARED | 3.3 | LOW | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | OpenZeppelin | Contracts-wizard | affected < 0.10.11 | Not specified |
| CNA | @openzeppelin | Wizard | affected < 0.10.11 | Not specified |
| CNA | @openzeppelin | Wizard-cairo | affected < 3.0.1 | Not specified |
| CNA | @openzeppelin | Wizard-stellar | affected < 0.6.2 | Not specified |
| CNA | @openzeppelin | Wizard-stylus | affected < 0.3.1 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/OpenZeppelin/contracts-wizard/pull/818 | [email protected] | github.com | |
| github.com/OpenZeppelin/contracts-wizard/releases/tag/@openzeppelin/wiza... | [email protected] | github.com | |
| github.com/OpenZeppelin/contracts-wizard/security/advisories/GHSA-9wxg-v... | [email protected] | github.com | |
| github.com/OpenZeppelin/contracts-wizard/releases/tag/@openzeppelin/wiza... | [email protected] | github.com | |
| github.com/OpenZeppelin/contracts-wizard/releases/tag/@openzeppelin/wiza... | [email protected] | github.com | |
| github.com/OpenZeppelin/contracts-wizard/releases/tag/@openzeppelin/wiza... | [email protected] | github.com | |
| github.com/OpenZeppelin/contracts-wizard/commit/6b18ecbd727a22d9f8c592e5... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.