CVE-2022-0536: Follow redirects Exposure Of Sensitive Information To Vulnerability
MODERATECVE-2022-0536 is a MODERATE (CVSS 5.9) exposure of sensitive information to vulnerability (CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) affecting Follow redirects libraries in the npm ecosystem. The issue involves exposure of sensitive information to an unauthorized actor in follow-redirects. Remediation is available by upgrading affected packages to version 1.14.8.
CVE-2022-0536 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2022-0536
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.8
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-0536, 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.8), 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-212: Improper Removal of Sensitive Information Before Storage or Transfer, where the product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors. 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-0536 Affected Follow redirects Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
follow-redirects
|
npm |
< 1.14.8
|
1.14.8
|
References
Frequently Asked Questions
What is CVE-2022-0536?
Which Follow redirects versions are affected?
What version fixes CVE-2022-0536?
Is follow-redirects affected?
What is the CVSS score of CVE-2022-0536?
What CWE is associated with CVE-2022-0536?
How can I check npm dependencies for CVE-2022-0536?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pw2r-vq6v-hr8c",
"modified" : "2022-02-14T22:27:56Z",
"published" : "2022-02-10T00:00:31Z",
"aliases" : [ "CVE-2022-0536" ],
"summary" : "Exposure of Sensitive Information to an Unauthorized Actor in follow-redirects",
"details" : "Exposure of Sensitive Information to an Unauthorized Actor in NPM follow-redirects prior to 1.14.8.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "follow-redirects"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.14.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0536"
}, {
"type" : "WEB",
"url" : "https://github.com/follow-redirects/follow-redirects/commit/62e546a99c07c3ee5e4e0718c84a6ca127c5c445"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/follow-redirects/follow-redirects"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/7cf2bf90-52da-4d59-8028-a73b132de0db"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-212" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-11T21:18:03Z",
"nvd_published_at" : "2022-02-09T11:15:00Z"
}
}