MediumGHSA-fxwf-4rqh-v8g3CVE-2020-28481
CORS misconfiguration in socket.io
Published 20 Jan 2021 · Updated 14 Jan 2025
Affected package
socket.ionpm
- Affected
- <2.4.0
- Fixed in
- 2.4.0
Update to the fixed version for your release line, for example:
npm install socket.io@2.4.0Details
The package socket.io before 2.4.0 are vulnerable to Insecure Defaults due to CORS Misconfiguration. All domains are whitelisted by default.
Is GHSA-fxwf-4rqh-v8g3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected socket.io, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-28481
- Linkgithub.com/socketio/socket.io/issues/3671
- Linkgithub.com/socketio/socket.io/commit/f78a575f66ab693c3ea96ea88429ddb1a44c86c7
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1056358
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1056357
- Linksnyk.io/vuln/SNYK-JS-SOCKETIO-1024859
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.