GHSA-q4h9-46xg-m3x9: @openzeppelin/contracts upgradeable UUPSUpgradeable Vulnerability Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-q4h9-46xg-m3x9 is a CRITICAL uupsupgradeable vulnerability vulnerability (General Security Weakness) affecting @openzeppelin/contracts upgradeable libraries in the npm ecosystem. The issue involves uupsupgradeable vulnerability in @openzeppelin/contracts-upgradeable. Remediation is available by upgrading affected packages to version 4.3.2.

GHSA-q4h9-46xg-m3x9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q4h9-46xg-m3x9
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product @openzeppelin/contracts upgradeable
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-q4h9-46xg-m3x9

To remediate this vulnerability, upgrade all affected @openzeppelin/contracts upgradeable dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@openzeppelin/contracts-upgradeable fixed: 4.3.2
npm install @openzeppelin/contracts-upgradeable@4.3.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @openzeppelin/contracts-upgradeable

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-q4h9-46xg-m3x9, inspect your project dependencies using npm:

npm ls @openzeppelin/contracts-upgradeable

Analyze the terminal output to locate any version of @openzeppelin/contracts upgradeable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.2), your application is affected.

Note: The npm ls @openzeppelin/contracts-upgradeable command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In @openzeppelin/contracts upgradeable, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Upgradeable contracts using `UUPSUpgradeable` may be vulnerable to an attack affecting uninitialized implementation contracts. We will update this advisory with more information soon. ### Patches A fix is included in version 4.3.2 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`. ### Workarounds Initialize implementation contracts using `UUPSUpgradeable` by invoking the initializer function (usually called `initialize`). An example is provided [in the forum](https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301). ### References A post-mortem will be published in a few days in the [OpenZeppelin Forum](https://forum.openzeppelin.com/). ### For more information If you have any questions or comments about this advisory, or need assistance executing the mitigation, email us at security@openzeppelin.com.

GHSA-q4h9-46xg-m3x9 Affected @openzeppelin/contracts upgradeable Versions

1 component(s)
Fixed Versions:
4.3.2
Product / Package Ecosystem Affected Versions Fixed Version
@openzeppelin/contracts-upgradeable
npm
≥ 4.1.0
< 4.3.2
4.3.2

References

Frequently Asked Questions

What is GHSA-q4h9-46xg-m3x9?
GHSA-q4h9-46xg-m3x9 is a security vulnerability in @openzeppelin/contracts upgradeable involving UUPSUpgradeable vulnerability in @openzeppelin/contracts-upgradeable under General Security Weakness.
Which @openzeppelin/contracts upgradeable versions are affected?
Affected versions include releases prior to 4.3.2 across affected packages: @openzeppelin/contracts-upgradeable.
What version fixes GHSA-q4h9-46xg-m3x9?
Upgrading to 4.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @openzeppelin/contracts-upgradeable affected?
Yes, @openzeppelin/contracts-upgradeable is affected in releases prior to 4.3.2. Upgrade your dependency to 4.3.2 or later.
What CWE is associated with GHSA-q4h9-46xg-m3x9?
GHSA-q4h9-46xg-m3x9 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-q4h9-46xg-m3x9?
Run the dependency tree command: 'npm ls @openzeppelin/contracts-upgradeable'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q4h9-46xg-m3x9",
  "modified" : "2021-09-14T22:17:40Z",
  "published" : "2021-09-15T20:22:13Z",
  "aliases" : [ ],
  "summary" : "UUPSUpgradeable vulnerability in @openzeppelin/contracts-upgradeable",
  "details" : "### Impact\n\nUpgradeable contracts using `UUPSUpgradeable` may be vulnerable to an attack affecting uninitialized implementation contracts. We will update this advisory with more information soon.\n\n### Patches\n\nA fix is included in version 4.3.2 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`.\n\n### Workarounds\n\nInitialize implementation contracts using `UUPSUpgradeable` by invoking the initializer function (usually called `initialize`). An example is provided [in the forum](https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301).\n\n### References\n\nA post-mortem will be published in a few days in the [OpenZeppelin Forum](https://forum.openzeppelin.com/).\n\n### For more information\n\nIf you have any questions or comments about this advisory, or need assistance executing the mitigation, email us at security@openzeppelin.com.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@openzeppelin/contracts-upgradeable"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/security/advisories/GHSA-q4h9-46xg-m3x9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-09-14T22:17:40Z",
    "nvd_published_at" : null
  }
}