CVE-2022-48216: @uniswap/universal router Uniswap Universal Router Incorrect Authorization Vulnerability

HIGH
Advisory Identifier: GHSA-7m37-cx35-qgmr
CVSS 7.5
CWE-667 CWE-863
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-48216
GHSA Identifier GHSA-7m37-cx35-qgmr
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-667: Improper Locking
Affected Product @uniswap/universal router
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

@uniswap/universal-router fixed: 1.1.0
npm install @uniswap/universal-router@1.1.0
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 @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

Uniswap Universal Router before 1.1.0 mishandles reentrancy. This would have allowed theft of funds.

CVE-2022-48216 Affected @uniswap/universal router Versions

1 component(s)
Fixed Versions:
1.1.0
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?
CVE-2022-48216 is a security vulnerability in @uniswap/universal router involving Uniswap Universal Router Incorrect Authorization vulnerability under CWE-667: Improper Locking.
Which @uniswap/universal router versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: @uniswap/universal-router.
What version fixes CVE-2022-48216?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @uniswap/universal-router affected?
Yes, @uniswap/universal-router is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of CVE-2022-48216?
CVE-2022-48216 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-48216?
CVE-2022-48216 is classified under CWE-667: Improper Locking (The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.).
How can I check npm dependencies for CVE-2022-48216?
Run the dependency tree command: 'npm ls @uniswap/universal-router'. 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-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"
  }
}