CVE-2022-48216: @uniswap/universal router Uniswap Universal Router Incorrect Authorization Vulnerability
HIGHCVE-2022-48216 is a HIGH (CVSS 7.5) uniswap universal router incorrect authorization vulnerability (CWE-667: Improper Locking) affecting @uniswap/universal router libraries in the npm ecosystem. The issue involves uniswap universal router incorrect authorization vulnerability. Remediation is available by upgrading affected packages to version 1.1.0.
CVE-2022-48216 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-48216
To remediate this vulnerability, upgrade all affected @uniswap/universal router 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 @uniswap/universal-router@1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @uniswap/universal-router
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-48216, inspect your project dependencies using npm:
npm ls @uniswap/universal-router
Analyze the terminal output to locate any version of @uniswap/universal router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The npm ls @uniswap/universal-router 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 CWE-667: Improper Locking, where the product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors. In @uniswap/universal router, 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
CVE-2022-48216 Affected @uniswap/universal router Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@uniswap/universal-router
|
npm |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2022-48216?
Which @uniswap/universal router versions are affected?
What version fixes CVE-2022-48216?
Is @uniswap/universal-router affected?
What is the CVSS score of CVE-2022-48216?
What CWE is associated with CVE-2022-48216?
How can I check npm dependencies for CVE-2022-48216?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7m37-cx35-qgmr",
"modified" : "2023-01-11T23:47:54Z",
"published" : "2023-01-04T18:31:00Z",
"aliases" : [ "CVE-2022-48216" ],
"summary" : "Uniswap Universal Router Incorrect Authorization vulnerability",
"details" : "Uniswap Universal Router before 1.1.0 mishandles reentrancy. This would have allowed theft of funds.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@uniswap/universal-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-48216"
}, {
"type" : "WEB",
"url" : "https://github.com/Uniswap/universal-router/pull/189"
}, {
"type" : "WEB",
"url" : "https://github.com/Uniswap/universal-router/commit/d82c6685ef566d9b280651c99f4b93a8454c08a8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Uniswap/universal-router"
}, {
"type" : "WEB",
"url" : "https://github.com/Uniswap/universal-router/compare/v1.0.1...v1.1.0"
}, {
"type" : "WEB",
"url" : "https://media.dedaub.com/uniswap-bug-bounty-1625d8ff04ae"
}, {
"type" : "WEB",
"url" : "https://twitter.com/dedaub/status/1610058814094450694"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-667", "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-11T23:47:54Z",
"nvd_published_at" : "2023-01-04T16:15:00Z"
}
}