Arbitrary Code Injection Affecting @openzeppelin/wizard package, versions <0.10.9


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-OPENZEPPELINWIZARD-17756776
  • published1 Jul 2026
  • disclosed11 Jun 2026
  • creditUnknown

Introduced: 11 Jun 2026

CVE-2026-48054  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @openzeppelin/wizard to version 0.10.9 or higher.

Overview

@openzeppelin/wizard is an A boilerplate generator to get started with OpenZeppelin Contracts

Affected versions of this package are vulnerable to Arbitrary Code Injection via unsanitized user input in the zipHardhat and zipFoundry functions. An attacker can execute arbitrary code by supplying crafted values to opts.name or opts.uri that are interpolated into generated test files and executed when a developer runs test commands. This is only exploitable if a developer uses undocumented internal functions and forwards externally-controlled strings into these options.

CVSS Base Scores

version 4.0
version 3.1