Vulnerabilities in pkg:npm/mosca
PACKAGECVE-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.
pkg:npm/mosca
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
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).
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.
npm install mosca@2.8.2
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
CVE-2018-11615 Affected Mosca Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mosca
|
npm |
< 2.8.2
|
2.8.2
|
References
Frequently Asked Questions
What is CVE-2018-11615?
Which Mosca versions are affected?
What version fixes CVE-2018-11615?
Is mosca affected?
What is the CVSS score of CVE-2018-11615?
What CWE is associated with CVE-2018-11615?
How can I check npm dependencies for CVE-2018-11615?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}