CVE-2022-0355: Simple get Exposure Of Sensitive Information Vulnerability
HIGHCVE-2022-0355 is a HIGH (CVSS 7.5) exposure of sensitive information vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Simple get libraries in the npm ecosystem. The issue involves exposure of sensitive information in simple-get. Remediation is available by upgrading affected packages to version 4.0.1, 3.1.1, 2.8.2.
CVE-2022-0355 at a Glance
Security Impact
CVSS: 7.5
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:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2022-0355
To remediate this vulnerability, upgrade all affected Simple get 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 simple-get@4.0.1
npm install simple-get@3.1.1
npm install simple-get@2.8.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls simple-get
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-0355, inspect your project dependencies using npm:
npm ls simple-get
Analyze the terminal output to locate any version of Simple get in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.1), your application is affected.
Note: The npm ls simple-get 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Simple get, 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-0355 Affected Simple get Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
simple-get
|
npm |
≥ 4.0.0
< 4.0.1
All 1 versions
4.0.0
|
4.0.1
|
|
simple-get
|
npm |
≥ 3.0.0
< 3.1.1
|
3.1.1
|
|
simple-get
|
npm |
< 2.8.2
|
2.8.2
|
References
Frequently Asked Questions
What is CVE-2022-0355?
Which Simple get versions are affected?
What version fixes CVE-2022-0355?
Is simple-get affected?
What is the CVSS score of CVE-2022-0355?
What CWE is associated with CVE-2022-0355?
How can I check npm dependencies for CVE-2022-0355?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wpg7-2c88-r8xv",
"modified" : "2022-02-03T16:08:56Z",
"published" : "2022-01-28T22:54:16Z",
"aliases" : [ "CVE-2022-0355" ],
"summary" : "Exposure of Sensitive Information in simple-get",
"details" : "In versions of simple-get prior to 4.0.1, 3.1.1, and 2.8.2, when fetching a remote url with a cookie location response, headers will be followed, potentially resulting in an exposure of the session cookie to a third party.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "simple-get"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.1"
} ]
} ],
"versions" : [ "4.0.0" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "simple-get"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.1.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "simple-get"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0355"
}, {
"type" : "WEB",
"url" : "https://github.com/feross/simple-get/pull/75#issuecomment-1027755026"
}, {
"type" : "WEB",
"url" : "https://github.com/feross/simple-get/pull/76#issuecomment-1027754710"
}, {
"type" : "WEB",
"url" : "https://github.com/feross/simple-get/commit/e4af095e06cd69a9235013e8507e220a79b9684f"
}, {
"type" : "WEB",
"url" : "https://github.com/feross/simple-get"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/42c79c23-6646-46c4-871d-219c0d4b4e31"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-27T23:17:09Z",
"nvd_published_at" : "2022-01-26T04:15:00Z"
}
}