CVE-2020-28481 Insecure Defaults
Socket.io library allows all domains by default, enabling cross-origin requests that bypass security controls.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-28481?
CVE-2020-28481 is a medium-severity vulnerability in socket.io, published on 19 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package socket.io before 2.4.0 are vulnerable to Insecure Defaults due to CORS Misconfiguration. All domains are whitelisted by default.
Weakness: CWE-346
Which versions are affected by CVE-2020-28481?
2 open source packages ship an affected version, including socket.io. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
socket.io npm | All versions | 2.4.0 |
socket.io npm | All versions | 2.4.0 |
Products include Socket Socket.io.
How do I fix CVE-2020-28481?
Upgrade socket.io to 2.4.0 or later.
Is CVE-2020-28481 being exploited?
There is no known exploitation of CVE-2020-28481 in the wild and no public exploit code.
Other vulnerabilities in socket.io
Sources
Also known as AZL-44430, CLSA-2026-1771978231, GHSA-fxwf-4rqh-v8g3.