CVE-2022-21667: @soketi/soketi Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-86ch-6w7v-v6xf
CVSS 7.5
CWE-755
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-21667
GHSA Identifier GHSA-86ch-6w7v-v6xf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product @soketi/soketi
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

@soketi/soketi fixed: 0.24.1
npm install @soketi/soketi@0.24.1
Verify Direct and Transitive Dependencies

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

### Impact _What kind of vulnerability is it? Who is impacted?_ There 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. All users that run the server are affected by it and it's highly recommended to upgrade to the latest patch. ### Patches _Has the problem been patched? What versions should users upgrade to?_ Updating to at least 0.24.1 or the latest version. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ No. Upgrading is the only solution. ### References _Are there any links users can visit to find out more?_ https://github.com/soketi/soketi/releases/tag/0.24.1 ### For more information If you have any questions or comments about this advisory: * Open an issue in [the issues board](https://github.com/soketi/soketi/issues) * Email us at [alex@renoki.org](mailto:alex@renoki.org)

CVE-2022-21667 Affected @soketi/soketi Versions

1 component(s)
Fixed Versions:
0.24.1
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?
CVE-2022-21667 is a security vulnerability in @soketi/soketi involving Denial of Service in soketi under CWE-755: Improper Handling of Exceptional Conditions.
Which @soketi/soketi versions are affected?
Affected versions include releases prior to 0.24.1 across affected packages: @soketi/soketi.
What version fixes CVE-2022-21667?
Upgrading to 0.24.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @soketi/soketi affected?
Yes, @soketi/soketi is affected in releases prior to 0.24.1. Upgrade your dependency to 0.24.1 or later.
What is the CVSS score of CVE-2022-21667?
CVE-2022-21667 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-21667?
CVE-2022-21667 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check npm dependencies for CVE-2022-21667?
Run the dependency tree command: 'npm ls @soketi/soketi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}