CVE-2022-33987 is a medium-severity (CVSS 5.3) vulnerability in got. A fix is available for got — see the affected versions and patch details below.
Got allows a redirect to a UNIX socket
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
gotnpmDescription
The got package before 12.1.0 (also fixed in 11.8.5) for Node.js allows a redirect to a UNIX socket.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | got | ≥ 12.0.0&&< 12.1.0 | 12.1.0npm install got@12.1.0 |
| 📦npm | got | all versions | 11.8.5npm install got@11.8.5 |
Affected Products
gotgot_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for got, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update got to 12.1.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-33987 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
As got is only a transitive dependency of a development dependency of kiali OpenShift Service Mesh as well as being removed in version 2.2+, this flaw will not be fixed at this time for the openshift-istio-kiali-rhel8-container.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 8 | nodejs:14-8060020220804102127.ad008a3a | RHSA-2022:6448 |
| Red Hat Enterprise Linux 8 | nodejs:16-8060020220805104227.ad008a3a | RHSA-2022:6449 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | nodejs:14-8040020220804130254.522a0ee4 | RHSA-2022:6985 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon-0:2.0.19-1.el9_0 | RHSA-2022:6595 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs14-nodejs-nodemon-0:2.0.19-1.el7 | RHSA-2022:6389 |
Frequently Asked Questions
Is CVE-2022-33987 in your dependencies?
Find it across npm, including transitive dependencies.