CVE-2022-1365: Withdrawn Advisory Incorrect Authorization Vulnerability

MODERATE
Advisory Identifier: GHSA-7gc6-qh9x-w6h8
CVSS 6.1
CWE-863 CWE-359
Published
Advisory Summary

CVE-2022-1365 is a MODERATE (CVSS 6.1) incorrect authorization vulnerability (CWE-863: Incorrect Authorization) affecting Withdrawn Advisory libraries in the npm ecosystem. The issue involves incorrect authorization in cross-fetch. Remediation is available by upgrading affected packages to version 3.1.5, 2.2.6.

CVE-2022-1365 at a Glance

CVE Identifier CVE-2022-1365
GHSA Identifier GHSA-7gc6-qh9x-w6h8
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-863: Incorrect Authorization
Affected Product Withdrawn Advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:R/S:C/C:L/I:L/A:N).

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

How to Fix CVE-2022-1365

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

cross-fetch fixed: 3.1.5
npm install cross-fetch@3.1.5
cross-fetch fixed: 2.2.6
npm install cross-fetch@2.2.6
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 cross-fetch

How to Check if You Are Affected

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

npm ls cross-fetch

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

Note: The npm ls cross-fetch 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Withdrawn Advisory, 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

## Withdrawn Advisory This advisory has been withdrawn because the vulnerability originates from a dependency. For more information, see the `Maintainer` comments in https://huntr.com/bounties/ab55dfdd-2a60-437a-a832-e3efe3d264ac. ## Original Description When fetching a remote url with Cookie if it get Location response header then it will follow that url and try to fetch that url with provided cookie . So cookie is leaked here to thirdparty. Ex: you try to fetch example.com with cookie and if it get redirect url to attacker.com then it fetch that redirect url with provided cookie .

CVE-2022-1365 Affected Withdrawn Advisory Versions

2 component(s)
Fixed Versions:
3.1.52.2.6
Product / Package Ecosystem Affected Versions Fixed Version
cross-fetch
npm
≥ 3.0.0
< 3.1.5
3.1.5
cross-fetch
npm
< 2.2.6
2.2.6

References

Frequently Asked Questions

What is CVE-2022-1365?
CVE-2022-1365 is a security vulnerability in Withdrawn Advisory involving Incorrect Authorization in cross-fetch under CWE-863: Incorrect Authorization.
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 3.1.5, 2.2.6 across affected packages: cross-fetch.
What version fixes CVE-2022-1365?
Upgrading to 3.1.5, 2.2.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cross-fetch affected?
Yes, cross-fetch is affected in releases prior to 3.1.5, 2.2.6. Upgrade your dependency to 3.1.5, 2.2.6 or later.
What is the CVSS score of CVE-2022-1365?
CVE-2022-1365 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2022-1365?
CVE-2022-1365 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check npm dependencies for CVE-2022-1365?
Run the dependency tree command: 'npm ls cross-fetch'. 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-7gc6-qh9x-w6h8",
  "modified" : "2025-10-08T19:22:14Z",
  "published" : "2022-04-17T00:00:32Z",
  "withdrawn" : "2025-10-08T19:22:14Z",
  "aliases" : [ "CVE-2022-1365" ],
  "summary" : "Withdrawn Advisory: Incorrect Authorization in cross-fetch",
  "details" : "## Withdrawn Advisory\nThis advisory has been withdrawn because the vulnerability originates from a dependency. For more information, see the `Maintainer` comments in https://huntr.com/bounties/ab55dfdd-2a60-437a-a832-e3efe3d264ac.\n\n## Original Description\nWhen fetching a remote url with Cookie if it get Location response header then it will follow that url and try to fetch that url with provided cookie . So cookie is leaked here to thirdparty.\nEx: you try to fetch example.com with cookie and if it get redirect url to attacker.com then it fetch that redirect url with provided cookie .",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "cross-fetch"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "cross-fetch"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-1365"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lquixada/cross-fetch/pull/135"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lquixada/cross-fetch/commit/a3b3a9481091ddd06b8f83784ba9c4e034dc912a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lquixada/cross-fetch"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/ab55dfdd-2a60-437a-a832-e3efe3d264ac"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-359", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-04-28T20:45:25Z",
    "nvd_published_at" : "2022-04-15T23:15:00Z"
  }
}