CVE-2022-0155: Follow redirects Exposure Of Sensitive Information Vulnerability

HIGH
Advisory Identifier: GHSA-74fj-2j2h-c42q
CVSS 8.0
CWE-359
Published
Advisory Summary

CVE-2022-0155 is a HIGH (CVSS 8.0) exposure of sensitive information vulnerability (CWE-359: Exposure of Private Personal Information to an Unauthorized Actor) affecting Follow redirects libraries in the npm ecosystem. The issue involves exposure of sensitive information in follow-redirects. Remediation is available by upgrading affected packages to version 1.14.7.

CVE-2022-0155 at a Glance

CVE Identifier CVE-2022-0155
GHSA Identifier GHSA-74fj-2j2h-c42q
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-359: Exposure of Private Personal Information to an Unauthorized Actor
Affected Product Follow redirects
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-0155

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

follow-redirects fixed: 1.14.7
npm install follow-redirects@1.14.7
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 follow-redirects

How to Check if You Are Affected

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

npm ls follow-redirects

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

Note: The npm ls follow-redirects 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-359: Exposure of Private Personal Information to an Unauthorized Actor, where the product does not properly prevent a person's private, personal information from being accessed by actors who either (1) are not explicitly authorized to access the information or (2) do not have the implicit consent of the person about whom the information is collected. In Follow redirects, 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

follow-redirects is vulnerable to Exposure of Private Personal Information to an Unauthorized Actor

CVE-2022-0155 Affected Follow redirects Versions

1 component(s)
Fixed Versions:
1.14.7
Product / Package Ecosystem Affected Versions Fixed Version
follow-redirects
npm
< 1.14.7
1.14.7

References

Frequently Asked Questions

What is CVE-2022-0155?
CVE-2022-0155 is a security vulnerability in Follow redirects involving Exposure of sensitive information in follow-redirects under CWE-359: Exposure of Private Personal Information to an Unauthorized Actor.
Which Follow redirects versions are affected?
Affected versions include releases prior to 1.14.7 across affected packages: follow-redirects.
What version fixes CVE-2022-0155?
Upgrading to 1.14.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is follow-redirects affected?
Yes, follow-redirects is affected in releases prior to 1.14.7. Upgrade your dependency to 1.14.7 or later.
What is the CVSS score of CVE-2022-0155?
CVE-2022-0155 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-0155?
CVE-2022-0155 is classified under CWE-359: Exposure of Private Personal Information to an Unauthorized Actor (The product does not properly prevent a person's private, personal information from being accessed by actors who either (1) are not explicitly authorized to access the information or (2) do not have the implicit consent of the person about whom the information is collected.).
How can I check npm dependencies for CVE-2022-0155?
Run the dependency tree command: 'npm ls follow-redirects'. 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-74fj-2j2h-c42q",
  "modified" : "2022-01-20T15:34:48Z",
  "published" : "2022-01-12T22:46:26Z",
  "aliases" : [ "CVE-2022-0155" ],
  "summary" : "Exposure of sensitive information in follow-redirects",
  "details" : "follow-redirects is vulnerable to Exposure of Private Personal Information to an Unauthorized Actor",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "follow-redirects"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.14.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0155"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/follow-redirects/follow-redirects/commit/8b347cbcef7c7b72a6e9be20f5710c17d6163c22"
  }, {
    "type" : "WEB",
    "url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/follow-redirects/follow-redirects"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/fc524e4b-ebb6-427d-ab67-a64181020406"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-359" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-11T18:41:08Z",
    "nvd_published_at" : "2022-01-10T20:15:00Z"
  }
}