GHSA-9wxg-vf3r-56hc

Suggest an improvement
Source
https://github.com/advisories/GHSA-9wxg-vf3r-56hc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9wxg-vf3r-56hc/GHSA-9wxg-vf3r-56hc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9wxg-vf3r-56hc
Aliases
Published
2026-06-19T17:45:15Z
Modified
2026-09-15T03:56:01Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated source
Details

Summary

The Contracts Wizard generators printed info.securityContact and info.license verbatim into a single-line comment of the generated Solidity, Cairo, Stellar/Soroban, and Stylus source without rejecting line terminators. A newline (\n or \r\n) in either field ends the comment, so the text after it is emitted as source rather than remaining inside the comment — allowing arbitrary declarations to be injected into the generated contract.

Impact

This only matters when these fields are filled from input other than the user who will use the generated contract. Normal self-service use does not meet that condition:

  • Web app, AI assistant, and CLI: the user supplies these fields and uses their own output, so a line break only affects their own contract. (These fields are not URL-derived, so shared links cannot set them.)
  • Self-hosted API: same — the end user supplies the options and consumes the result.

The case that matters is an integration that fills these fields from untrusted input — for example, an MCP agent whose tool arguments are derived from content it processed. There, a newline in the value can add lines to output that otherwise looks like normal Wizard source. Impact is integrity-only; there is no execution on any Wizard service.

Patches

Fixed by rejecting line terminators in setInfo — the single code path all surfaces use — so the value can no longer break out of the comment. Upgrade to the patched versions. @openzeppelin/wizard-confidential and @openzeppelin/wizard-uniswap-hooks reuse this setInfo through their @openzeppelin/wizard dependency and receive the fix once that dependency is updated to a patched version.

Database specific
{
    "cwe_ids":  [
        "CWE-116",
        "CWE-94"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-06-19T17:45:15Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

npm
@openzeppelin/wizard

Package

Name
@openzeppelin/wizard
View open source insights on deps.dev
Purl
pkg:npm/%40openzeppelin/wizard

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.10.11

Database specific

last_known_affected_version_range
"<= 0.10.10"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9wxg-vf3r-56hc/GHSA-9wxg-vf3r-56hc.json"
@openzeppelin/wizard-cairo

Package

Name
@openzeppelin/wizard-cairo
View open source insights on deps.dev
Purl
pkg:npm/%40openzeppelin/wizard-cairo

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.0.1

Database specific

last_known_affected_version_range
"<= 3.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9wxg-vf3r-56hc/GHSA-9wxg-vf3r-56hc.json"
@openzeppelin/wizard-stellar

Package

Name
@openzeppelin/wizard-stellar
View open source insights on deps.dev
Purl
pkg:npm/%40openzeppelin/wizard-stellar

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.6.2

Database specific

last_known_affected_version_range
"<= 0.6.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9wxg-vf3r-56hc/GHSA-9wxg-vf3r-56hc.json"
@openzeppelin/wizard-stylus

Package

Name
@openzeppelin/wizard-stylus
View open source insights on deps.dev
Purl
pkg:npm/%40openzeppelin/wizard-stylus

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.3.1

Database specific

last_known_affected_version_range
"<= 0.3.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9wxg-vf3r-56hc/GHSA-9wxg-vf3r-56hc.json"