Vulnerabilities in pkg:npm/mosca

PACKAGE
Advisory Identifier: GHSA-wqg7-vrj7-v82h
Advisory Summary

CVE-2018-11615 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Mosca libraries in the npm ecosystem. The issue involves mosca redos vulnerability. Remediation is available by upgrading affected packages to version 2.8.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/mosca

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/mosca. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wqg7-vrj7-v82h CVE-2018-11615 HIGH Mosca REDoS Vulnerability

CVE-2018-11615 at a Glance

CVE Identifier CVE-2018-11615
GHSA Identifier GHSA-wqg7-vrj7-v82h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Mosca
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.0/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-2018-11615

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

mosca fixed: 2.8.2
npm install mosca@2.8.2
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 mosca

How to Check if You Are Affected

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

npm ls mosca

Analyze the terminal output to locate any version of Mosca in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.2), your application is affected.

Note: The npm ls mosca 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Mosca, 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

This vulnerability allows remote attackers to deny service on vulnerable installations of npm mosca 2.8.1. Authentication is not required to exploit this vulnerability. The specific flaw exists within the processing of topics. A crafted regular expression can cause the broker to crash. An attacker can leverage this vulnerability to deny access to the target system.

CVE-2018-11615 Affected Mosca Versions

1 component(s)
Fixed Versions:
2.8.2
Product / Package Ecosystem Affected Versions Fixed Version
mosca
npm
< 2.8.2
2.8.2

References

Frequently Asked Questions

What is CVE-2018-11615?
CVE-2018-11615 is a security vulnerability in Mosca involving Mosca REDoS Vulnerability under CWE-20: Improper Input Validation.
Which Mosca versions are affected?
Affected versions include releases prior to 2.8.2 across affected packages: mosca.
What version fixes CVE-2018-11615?
Upgrading to 2.8.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mosca affected?
Yes, mosca is affected in releases prior to 2.8.2. Upgrade your dependency to 2.8.2 or later.
What is the CVSS score of CVE-2018-11615?
CVE-2018-11615 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-11615?
CVE-2018-11615 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2018-11615?
Run the dependency tree command: 'npm ls mosca'. 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-wqg7-vrj7-v82h",
  "modified" : "2023-09-07T22:27:31Z",
  "published" : "2018-08-31T06:22:50Z",
  "aliases" : [ "CVE-2018-11615" ],
  "summary" : "Mosca REDoS Vulnerability",
  "details" : "This vulnerability allows remote attackers to deny service on vulnerable installations of npm mosca 2.8.1. Authentication is not required to exploit this vulnerability. The specific flaw exists within the processing of topics. A crafted regular expression can cause the broker to crash. An attacker can leverage this vulnerability to deny access to the target system.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mosca"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.8.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11615"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-wqg7-vrj7-v82h"
  }, {
    "type" : "WEB",
    "url" : "https://zerodayinitiative.com/advisories/ZDI-18-583"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-185", "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:01:00Z",
    "nvd_published_at" : null
  }
}