
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-57583 is a code injection vulnerability in OpenZeppelin Contracts Wizard where line terminators in the info.securityContact and info.license fields can break out of single-line comments and inject arbitrary declarations into generated smart contract source code. It was published on June 18, 2026, and affects @openzeppelin/wizard ≤0.10.10, @openzeppelin/wizard-cairo ≤3.0.0, @openzeppelin/wizard-stellar ≤0.6.1, and @openzeppelin/wizard-stylus ≤0.3.0. The vulnerability carries a CVSS v3.1 base score of 3.3 (Low) (GitHub Advisory).
The root cause is improper output encoding (CWE-116) combined with improper control of code generation (CWE-94): the Wizard generators inserted info.securityContact and info.license verbatim into single-line comments of generated Solidity, Cairo, Stellar/Soroban, and Stylus source files without stripping or rejecting newline characters (\n or \r\n). Because a single-line comment terminates at the first newline, any text following the injected newline is emitted as executable source code rather than a comment, enabling arbitrary declarations to be inserted into the generated contract. Exploitation requires that an integration (e.g., an MCP agent) populates these fields from untrusted external input and that a user then acts on the resulting generated source (GitHub Advisory).
The impact is limited to integrity: an attacker who can influence the info.securityContact or info.license fields in an integration that consumes untrusted input can cause the Wizard to emit generated contract source containing injected declarations that appear to be legitimate Wizard output. There is no confidentiality or availability impact, and no code executes on any Wizard service itself. The practical risk arises when a downstream user deploys the tampered generated contract without careful review, potentially introducing malicious logic into a smart contract (GitHub Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported. The vulnerability is rated Low severity (CVSS 3.3) and requires user interaction, limiting its practical exploitability. It is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation is only meaningful in integrations that pass untrusted content into the info.securityContact or info.license fields — standard self-service use via the web app, CLI, or AI assistant is not affected (GitHub Advisory).
@openzeppelin/wizard (≤0.10.10) and populates info.securityContact or info.license from externally controlled or untrusted input.legitimate@contact.com\nfunction backdoor() public { selfdestruct(payable(msg.sender)); }.info.securityContact or info.license through the integration's input mechanism (e.g., tool arguments to an MCP agent).// Security Contact: or // License: comment header, particularly functions, state variables, or imports not consistent with the intended contract template.\n or \r\n characters within the info.securityContact or info.license fields in Wizard configuration objects or API call payloads.securityContact or license parameters to the Wizard API (GitHub Advisory).Upgrade to the patched versions: @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 fix rejects line terminators in the setInfo code path shared by all surfaces. Packages @openzeppelin/wizard-confidential and @openzeppelin/wizard-uniswap-hooks inherit the fix once their @openzeppelin/wizard dependency is updated. As a workaround, integrations that populate these fields from untrusted input should sanitize values by stripping or rejecting \n and \r\n characters before passing them to the Wizard (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."