Vulnerabilities in pkg:npm/got
PACKAGECVE-2022-33987 is a MODERATE (CVSS 5.3) got allows a redirect to vulnerability (General Security Weakness) affecting Got libraries in the npm ecosystem. The issue involves got allows a redirect to a unix socket. Remediation is available by upgrading affected packages to version 12.1.0, 11.8.5.
pkg:npm/got
Vulnerability advisories affecting package pkg:npm/got. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-pfrx-2q88-qq97 | CVE-2022-33987 | MODERATE | Got allows a redirect to a UNIX socket |
CVE-2022-33987 at a Glance
Security Impact
CVSS: 5.3
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:N/I:L/A:N).
How to Fix CVE-2022-33987
To remediate this vulnerability, upgrade all affected Got 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 got@12.1.0
npm install got@11.8.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls got
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-33987, inspect your project dependencies using npm:
npm ls got
Analyze the terminal output to locate any version of Got in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.1.0), your application is affected.
Note: The npm ls got 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 General Security Weakness. In Got, 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-33987 Affected Got Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2022-33987?
Which Got versions are affected?
What version fixes CVE-2022-33987?
Is got affected?
What is the CVSS score of CVE-2022-33987?
What CWE is associated with CVE-2022-33987?
How can I check npm dependencies for CVE-2022-33987?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pfrx-2q88-qq97",
"modified" : "2022-07-05T21:24:52Z",
"published" : "2022-06-19T00:00:21Z",
"aliases" : [ "CVE-2022-33987" ],
"summary" : "Got allows a redirect to a UNIX socket",
"details" : "The got package before 11.8.5 and 12.1.0 for Node.js allows a redirect to a UNIX socket.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "got"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0"
}, {
"fixed" : "12.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "got"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "11.8.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-33987"
}, {
"type" : "WEB",
"url" : "https://github.com/sindresorhus/got/pull/2047"
}, {
"type" : "WEB",
"url" : "https://github.com/sindresorhus/got/commit/861ccd9ac2237df762a9e2beed7edd88c60782dc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sindresorhus/got"
}, {
"type" : "WEB",
"url" : "https://github.com/sindresorhus/got/compare/v12.0.3...v12.1.0"
}, {
"type" : "WEB",
"url" : "https://github.com/sindresorhus/got/releases/tag/v11.8.5"
}, {
"type" : "WEB",
"url" : "https://github.com/sindresorhus/got/releases/tag/v12.1.0"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-21T20:05:25Z",
"nvd_published_at" : "2022-06-18T21:15:00Z"
}
}