Vulnerabilities in pkg:npm/@rocket.chat/message-parser

PACKAGE
Advisory Identifier: GHSA-6375-pg5j-8wph
Advisory Summary

CVE-2024-46935 is a MODERATE (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting @rocket.chat/message parser libraries in the npm ecosystem. The issue involves denial of service in rocket chat message parser. Remediation is available by upgrading affected packages to version 0.31.30.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@rocket.chat/message-parser

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@rocket.chat/message-parser. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6375-pg5j-8wph CVE-2024-46935 MODERATE Denial of service in rocket chat message parser

CVE-2024-46935 at a Glance

CVE Identifier CVE-2024-46935
GHSA Identifier GHSA-6375-pg5j-8wph
Severity MODERATE
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product @rocket.chat/message parser
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-2024-46935

To remediate this vulnerability, upgrade all affected @rocket.chat/message parser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@rocket.chat/message-parser fixed: 0.31.30
npm install @rocket.chat/message-parser@0.31.30
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 @rocket.chat/message-parser

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-46935, inspect your project dependencies using npm:

npm ls @rocket.chat/message-parser

Analyze the terminal output to locate any version of @rocket.chat/message parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.31.30), your application is affected.

Note: The npm ls @rocket.chat/message-parser 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In @rocket.chat/message parser, 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

Rocket.Chat 6.12.0, 6.11.2, 6.10.5, 6.9.6, 6.8.6, 6.7.8, and earlier is vulnerable to denial of service (DoS). Attackers who craft messages with specific characters may crash the workspace due to an issue in the message parser.

CVE-2024-46935 Affected @rocket.chat/message parser Versions

1 component(s)
Fixed Versions:
0.31.30
Product / Package Ecosystem Affected Versions Fixed Version
@rocket.chat/message-parser
npm
< 0.31.30
0.31.30

References

Frequently Asked Questions

What is CVE-2024-46935?
CVE-2024-46935 is a security vulnerability in @rocket.chat/message parser involving Denial of service in rocket chat message parser under CWE-400: Uncontrolled Resource Consumption.
Which @rocket.chat/message parser versions are affected?
Affected versions include releases prior to 0.31.30 across affected packages: @rocket.chat/message-parser.
What version fixes CVE-2024-46935?
Upgrading to 0.31.30 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @rocket.chat/message-parser affected?
Yes, @rocket.chat/message-parser is affected in releases prior to 0.31.30. Upgrade your dependency to 0.31.30 or later.
What is the CVSS score of CVE-2024-46935?
CVE-2024-46935 has a CVSS v3.1 base score of 7.5 (MODERATE) 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-2024-46935?
CVE-2024-46935 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2024-46935?
Run the dependency tree command: 'npm ls @rocket.chat/message-parser'. 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-6375-pg5j-8wph",
  "modified" : "2024-09-26T21:10:27Z",
  "published" : "2024-09-25T03:30:36Z",
  "aliases" : [ "CVE-2024-46935" ],
  "summary" : "Denial of service in rocket chat message parser",
  "details" : "Rocket.Chat 6.12.0, 6.11.2, 6.10.5, 6.9.6, 6.8.6, 6.7.8, and earlier is vulnerable to denial of service (DoS). Attackers who craft messages with specific characters may crash the workspace due to an issue in the message parser.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@rocket.chat/message-parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.31.30"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46935"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/RocketChat/Rocket.Chat/pull/33227"
  }, {
    "type" : "WEB",
    "url" : "https://docs.rocket.chat/docs/rocketchat-security-fixes-updates-and-advisories"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/RocketChat/Rocket.Chat/releases/tag/6.12.1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/RocketChat/fuselage"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-25T18:51:16Z",
    "nvd_published_at" : "2024-09-25T01:15:44Z"
  }
}