CVE-2022-21667: @soketi/soketi Denial of Service Vulnerability
HIGHCVE-2022-21667 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting @soketi/soketi libraries in the npm ecosystem. The issue involves denial of service in soketi. Remediation is available by upgrading affected packages to version 0.24.1.
CVE-2022-21667 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-21667
To remediate this vulnerability, upgrade all affected @soketi/soketi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @soketi/soketi@0.24.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @soketi/soketi
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-21667, inspect your project dependencies using npm:
npm ls @soketi/soketi
Analyze the terminal output to locate any version of @soketi/soketi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.24.1), your application is affected.
Note: The npm ls @soketi/soketi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In @soketi/soketi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-21667 Affected @soketi/soketi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@soketi/soketi
|
npm |
< 0.24.1
|
0.24.1
|
References
Frequently Asked Questions
What is CVE-2022-21667?
Which @soketi/soketi versions are affected?
What version fixes CVE-2022-21667?
Is @soketi/soketi affected?
What is the CVSS score of CVE-2022-21667?
What CWE is associated with CVE-2022-21667?
How can I check npm dependencies for CVE-2022-21667?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-86ch-6w7v-v6xf",
"modified" : "2022-01-18T22:37:17Z",
"published" : "2022-01-08T00:24:44Z",
"aliases" : [ "CVE-2022-21667" ],
"summary" : "Denial of Service in soketi",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nThere was a wrong behavior when reading POST requests, making the server crash if it couldn't read the body. In case a POST request was sent to any endpoint of the server with an empty body, **even unauthenticated with the Pusher Protocol**, it would simply just crash the server for trying to send a response after the request closed.\n\nAll users that run the server are affected by it and it's highly recommended to upgrade to the latest patch.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nUpdating to at least 0.24.1 or the latest version.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nNo. Upgrading is the only solution.\n\n### References\n_Are there any links users can visit to find out more?_\n\nhttps://github.com/soketi/soketi/releases/tag/0.24.1\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the issues board](https://github.com/soketi/soketi/issues)\n* Email us at [alex@renoki.org](mailto:alex@renoki.org)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@soketi/soketi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.24.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/soketi/soketi/security/advisories/GHSA-86ch-6w7v-v6xf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-21667"
}, {
"type" : "WEB",
"url" : "https://github.com/soketi/soketi/commit/4b12efef9c31117c36a0a0f1c3aa32114e86364b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/soketi/soketi"
}, {
"type" : "WEB",
"url" : "https://github.com/soketi/soketi/releases/tag/0.24.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-755" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-07T23:46:31Z",
"nvd_published_at" : "2022-01-10T14:12:00Z"
}
}