CVE-2022-0155: Follow redirects Exposure Of Sensitive Information Vulnerability
HIGHCVE-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
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).
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.
npm install follow-redirects@1.14.7
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
CVE-2022-0155 Affected Follow redirects Versions
1 component(s)| 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?
Which Follow redirects versions are affected?
What version fixes CVE-2022-0155?
Is follow-redirects affected?
What is the CVSS score of CVE-2022-0155?
What CWE is associated with CVE-2022-0155?
How can I check npm dependencies for CVE-2022-0155?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}