CVE-2022-21667: Denial of Service in soketi
Summary
CVE-2022-21667: Denial of Service in soketi. Affects @soketi/soketi versions < 0.24.1. Fixed in 0.24.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The soketi package is an npm package that provides a server implementation for the Pusher Protocol. It allows users to create real-time applications using WebSockets. The package is widely used by developers to build applications that require real-time communication. However, a vulnerability has been discovered in versions prior to 0.24.1 that can lead to a denial of service (DoS) attack.
Vulnerability Detail
The vulnerability in soketi arises from a wrong behavior when reading POST requests. If a POST request with an empty body is sent to any endpoint of the server, including unauthenticated requests, the server crashes when trying to send a response after the request is closed. This vulnerability affects all users of the server. An attacker can exploit this vulnerability by sending multiple empty POST requests, causing the server to crash and become unresponsive. The impact of this vulnerability is a DoS attack, which can disrupt the availability of the server and the applications relying on it.
How To Fix
Minimum fixed version
0.24.1
This is the first release that contains the fix.
npm install @soketi/soketi@0.24.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The soketi package is vulnerable to a denial of service (DoS) attack due to a wrong behavior when reading POST requests. Upgrading to version 0.24.1 or the latest version is necessary to fix this vulnerability. There are no known workarounds, and it is highly recommended to upgrade to the latest patch. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for @soketi/soketi →
FAQ
All users who are running the soketi server are affected by this vulnerability.
No, upgrading to the latest version is the only solution to fix this vulnerability.
The impact of this vulnerability is a denial of service (DoS) attack, which can cause the server to crash and become unresponsive.
No, there are no known workarounds for this vulnerability. Upgrading to the latest version is the recommended solution.
More information about this vulnerability can be found in the GitHub advisory: https://github.com/soketi/soketi/releases/tag/0.24.1
References
Related vulnerabilities
Recent vulnerabilities recorded for @soketi/soketi.