MediumGHSA-fxwf-4rqh-v8g3CVE-2020-28481

CORS misconfiguration in socket.io

Published 20 Jan 2021 · Updated 14 Jan 2025

Affected package

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.0

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.