CVE-2022-21667: Denial of Service in soketi

@soketi/soketi Updated 02 Oct 2025

Summary

08/01/2022
Yes i
High
7.5

CVE-2022-21667: Denial of Service in soketi. Affects @soketi/soketi versions < 0.24.1. Fixed in 0.24.1. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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

Related vulnerabilities

Recent vulnerabilities recorded for @soketi/soketi.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback