Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS03Z2M2LXFoOXgtdzZoOM08yQ

Incorrect Authorization in cross-fetch

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 .

Permalink: https://github.com/advisories/GHSA-7gc6-qh9x-w6h8
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS03Z2M2LXFoOXgtdzZoOM08yQ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 2 years ago
Updated: over 1 year ago


CVSS Score: 6.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Identifiers: GHSA-7gc6-qh9x-w6h8, CVE-2022-1365
References: Repository: https://github.com/lquixada/cross-fetch
Blast Radius: 34.5

Affected Packages

npm:cross-fetch
Dependent packages: 5,841
Dependent repositories: 460,600
Downloads: 66,467,299 last month
Affected Version Ranges: < 2.2.6, >= 3.0.0, < 3.1.5
Fixed in: 2.2.6, 3.1.5
All affected versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 1.0.0, 1.1.0, 1.1.1, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4
All unaffected versions: 2.2.6, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 4.0.0