CVE-2026-57583: CWE-94: Improper Control of Generation of Code ('Code Injection') in OpenZeppelin contracts-wizard
CVE-2026-57583 is a low-severity code injection vulnerability in OpenZeppelin Contracts Wizard prior to versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1. The issue arises because certain user-supplied fields (securityContact and license) are inserted verbatim into single-line comments in generated source code, allowing line terminators to break out of comments and inject code. Exploitation requires an integration that populates these fields from untrusted input and a user consuming the generated source code. Normal usage scenarios do not cross this trust boundary, and no code executes on the Wizard service itself. The vulnerability affects only the integrity of generated source code and has been fixed in the specified versions.
AI Analysis
Technical Summary
OpenZeppelin Contracts Wizard versions prior to 0.10.11 (@openzeppelin/wizard), 3.0.1 (@openzeppelin/wizard-cairo), 0.6.2 (@openzeppelin/wizard-stellar), and 0.3.1 (@openzeppelin/wizard-stylus) contain a code injection vulnerability (CWE-94) due to improper handling of info.securityContact and info.license fields. These fields are printed verbatim into single-line comments in generated source code for Solidity, Cairo, Stellar/Soroban, and Stylus. Because a line terminator ends the comment, an attacker controlling these fields via an integration that feeds untrusted input can inject source code declarations. However, typical usage modes (web, AI assistant, CLI, self-hosted API) do not allow untrusted input to reach these fields, and shared links cannot set them. No code executes on the Wizard service, so the impact is limited to generated source integrity. The issue is fixed in versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1 respectively.
Potential Impact
The vulnerability allows an attacker who can supply untrusted input to the securityContact or license fields in an integration to inject code into the generated source code output. This compromises the integrity of the generated source but does not affect confidentiality or availability. There is no indication of active exploitation in the wild. Normal users of the service are not exposed to this risk because the trust boundary is not crossed in typical usage.
Mitigation Recommendations
This vulnerability is fixed in OpenZeppelin Contracts Wizard versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1 for the respective packages. Users should upgrade to these versions or later to remediate the issue. Since this is not a cloud service, remediation requires updating the affected packages. No additional mitigation is required if upgrading is performed.
CVE-2026-57583: CWE-94: Improper Control of Generation of Code ('Code Injection') in OpenZeppelin contracts-wizard
Description
CVE-2026-57583 is a low-severity code injection vulnerability in OpenZeppelin Contracts Wizard prior to versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1. The issue arises because certain user-supplied fields (securityContact and license) are inserted verbatim into single-line comments in generated source code, allowing line terminators to break out of comments and inject code. Exploitation requires an integration that populates these fields from untrusted input and a user consuming the generated source code. Normal usage scenarios do not cross this trust boundary, and no code executes on the Wizard service itself. The vulnerability affects only the integrity of generated source code and has been fixed in the specified versions.
CVSS v3.1
Score 3.3low
Affected software
OpenZeppelin
contracts-wizard
@openzeppelin
wizard
@openzeppelin
wizard-cairo
@openzeppelin
wizard-stellar
@openzeppelin
wizard-stylus
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenZeppelin Contracts Wizard versions prior to 0.10.11 (@openzeppelin/wizard), 3.0.1 (@openzeppelin/wizard-cairo), 0.6.2 (@openzeppelin/wizard-stellar), and 0.3.1 (@openzeppelin/wizard-stylus) contain a code injection vulnerability (CWE-94) due to improper handling of info.securityContact and info.license fields. These fields are printed verbatim into single-line comments in generated source code for Solidity, Cairo, Stellar/Soroban, and Stylus. Because a line terminator ends the comment, an attacker controlling these fields via an integration that feeds untrusted input can inject source code declarations. However, typical usage modes (web, AI assistant, CLI, self-hosted API) do not allow untrusted input to reach these fields, and shared links cannot set them. No code executes on the Wizard service, so the impact is limited to generated source integrity. The issue is fixed in versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1 respectively.
Potential Impact
The vulnerability allows an attacker who can supply untrusted input to the securityContact or license fields in an integration to inject code into the generated source code output. This compromises the integrity of the generated source but does not affect confidentiality or availability. There is no indication of active exploitation in the wild. Normal users of the service are not exposed to this risk because the trust boundary is not crossed in typical usage.
Mitigation Recommendations
This vulnerability is fixed in OpenZeppelin Contracts Wizard versions 0.10.11, 3.0.1, 0.6.2, and 0.3.1 for the respective packages. Users should upgrade to these versions or later to remediate the issue. Since this is not a cloud service, remediation requires updating the affected packages. No additional mitigation is required if upgrading is performed.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T18:49:56.209Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aa8483f55bf5e2cf57d35f1
Added to database: 09/14/2026, 19:17:19 UTC
Last enriched: 09/14/2026, 19:31:40 UTC
Last updated: 09/14/2026, 19:51:44 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.