GHSA-q4h9-46xg-m3x9: @openzeppelin/contracts upgradeable UUPSUpgradeable Vulnerability Vulnerability
CRITICALGHSA-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
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.
npm install @openzeppelin/contracts-upgradeable@4.3.2
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
GHSA-q4h9-46xg-m3x9 Affected @openzeppelin/contracts upgradeable Versions
1 component(s)| 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?
Which @openzeppelin/contracts upgradeable versions are affected?
What version fixes GHSA-q4h9-46xg-m3x9?
Is @openzeppelin/contracts-upgradeable affected?
What CWE is associated with GHSA-q4h9-46xg-m3x9?
How can I check npm dependencies for GHSA-q4h9-46xg-m3x9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}