Skip to main content

CVE-2026-57583: CWE-94: Improper Control of Generation of Code ('Code Injection') in OpenZeppelin contracts-wizard

0
Low
VulnerabilityCVE-2026-57583cvecve-2026-57583cwe-94cwe-116
Published: 09/14/2026 (09/14/2026, 17:44:45 UTC)
Source: CVE Database V5
Vendor/Project: OpenZeppelin
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected software

OpenZeppelin

contracts-wizard

Affected versions
<0.10.11

@openzeppelin

wizard

Affected versions
<0.10.11

@openzeppelin

wizard-cairo

Affected versions
<3.0.1

@openzeppelin

wizard-stellar

Affected versions
<0.6.2

@openzeppelin

wizard-stylus

Affected versions
<0.3.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/14/2026, 19:31:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses