{"id":"GHSA-9wxg-vf3r-56hc","revision":"b4761789e1ed4219973ce326be14166a","records":[{"revision":"b4761789e1ed4219973ce326be14166a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9wxg-vf3r-56hc","aliases":["CVE-2026-57583"],"title":"OpenZeppelin Contracts Wizard: Line terminators in info.securityContact / info.license can inject lines into generated source","description":"## Summary\n\nThe 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.\n\n## Impact\n\nThis 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:\n\n- **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.)\n- **Self-hosted API:** same — the end user supplies the options and consumes the result.\n\nThe 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.\n\n## Patches\n\nFixed 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.","state":0,"publishedAt":"2026-06-19T17:45:15+00:00","modifiedAt":"2026-09-15T03:56:01.7027067+00:00","affected":[{"ecosystem":"npm","name":"@openzeppelin/wizard","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.10.11"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@openzeppelin/wizard-cairo","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@openzeppelin/wizard-stellar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.6.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@openzeppelin/wizard-stylus","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.3.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/OpenZeppelin/contracts-wizard/security/advisories/GHSA-9wxg-vf3r-56hc","https://github.com/OpenZeppelin/contracts-wizard"],"sourceUrl":"https://github.com/advisories/GHSA-9wxg-vf3r-56hc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9wxg-vf3r-56hc","identifiers":["GHSA-9wxg-vf3r-56hc","CVE-2026-57583"]},"retained":false,"historicalAffected":[]}],"coverage":[]}