CVE-2022-0528: @uppy/companion Incorrect Authorization Vulnerability

HIGH
Advisory Identifier: GHSA-q24h-5rq3-63j9
CVSS 7.5
CWE-918 CWE-200 CWE-863
Published
Advisory Summary

CVE-2022-0528 is a HIGH (CVSS 7.5) incorrect authorization vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting @uppy/companion libraries in the npm ecosystem. The issue involves incorrect authorization in @uppy/companion. Remediation is available by upgrading affected packages to version 3.3.1.

CVE-2022-0528 at a Glance

CVE Identifier CVE-2022-0528
GHSA Identifier GHSA-q24h-5rq3-63j9
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product @uppy/companion
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:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2022-0528

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

@uppy/companion fixed: 3.3.1
npm install @uppy/companion@3.3.1
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 @uppy/companion

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-0528, inspect your project dependencies using npm:

npm ls @uppy/companion

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

Note: The npm ls @uppy/companion 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In @uppy/companion, 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

@uppy/companion prior to version 3.3.1 is vulnerable to incorrect authorization. A user with URL upload access could enumerate internal companion server networks, send local webservers files to the destination server, and finally download them If each of these files had a guessable and regular name.

CVE-2022-0528 Affected @uppy/companion Versions

1 component(s)
Fixed Versions:
3.3.1
Product / Package Ecosystem Affected Versions Fixed Version
@uppy/companion
npm
< 3.3.1
3.3.1

References

Frequently Asked Questions

What is CVE-2022-0528?
CVE-2022-0528 is a security vulnerability in @uppy/companion involving Incorrect Authorization in @uppy/companion under CWE-918: Server-Side Request Forgery (SSRF).
Which @uppy/companion versions are affected?
Affected versions include releases prior to 3.3.1 across affected packages: @uppy/companion.
What version fixes CVE-2022-0528?
Upgrading to 3.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @uppy/companion affected?
Yes, @uppy/companion is affected in releases prior to 3.3.1. Upgrade your dependency to 3.3.1 or later.
What is the CVSS score of CVE-2022-0528?
CVE-2022-0528 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-0528?
CVE-2022-0528 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check npm dependencies for CVE-2022-0528?
Run the dependency tree command: 'npm ls @uppy/companion'. 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-q24h-5rq3-63j9",
  "modified" : "2022-03-10T21:57:56Z",
  "published" : "2022-03-04T00:00:19Z",
  "aliases" : [ "CVE-2022-0528" ],
  "summary" : "Incorrect Authorization in @uppy/companion",
  "details" : "@uppy/companion prior to version 3.3.1 is vulnerable to incorrect authorization. A user with URL upload access could enumerate internal companion server networks, send local webservers files to the destination server, and finally download them If each of these files had a guessable and regular name.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@uppy/companion"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0528"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/transloadit/uppy/commit/267c34045a1e62c98406d8c31261c604a11e544a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/transloadit/uppy"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/8b060cc3-2420-468e-8293-b9216620175b"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-863", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-10T21:57:56Z",
    "nvd_published_at" : "2022-03-03T07:15:00Z"
  }
}