Vulnerabilities in pkg:npm/sails-hook-sockets
PACKAGECVE-2018-21036 is a HIGH (CVSS 7.5) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Sails hook sockets libraries in the npm ecosystem. The issue involves improper input validation in sails-hook-sockets. Remediation is available by upgrading affected packages to version 1.5.5.
pkg:npm/sails-hook-sockets
Vulnerability advisories affecting package pkg:npm/sails-hook-sockets. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f7f4-hqp2-7prc | CVE-2018-21036 | HIGH | Improper Input Validation in sails-hook-sockets |
CVE-2018-21036 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-2018-21036
To remediate this vulnerability, upgrade all affected Sails hook sockets 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 sails-hook-sockets@1.5.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sails-hook-sockets
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-21036, inspect your project dependencies using npm:
npm ls sails-hook-sockets
Analyze the terminal output to locate any version of Sails hook sockets in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.5), your application is affected.
Note: The npm ls sails-hook-sockets 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 Sails hook sockets, 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-21036 Affected Sails hook sockets Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sails-hook-sockets
|
npm |
< 1.5.5
|
1.5.5
|
References
Frequently Asked Questions
What is CVE-2018-21036?
Which Sails hook sockets versions are affected?
What version fixes CVE-2018-21036?
Is sails-hook-sockets affected?
What is the CVSS score of CVE-2018-21036?
What CWE is associated with CVE-2018-21036?
How can I check npm dependencies for CVE-2018-21036?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f7f4-hqp2-7prc",
"modified" : "2021-09-22T21:11:20Z",
"published" : "2020-07-24T20:10:21Z",
"aliases" : [ "CVE-2018-21036" ],
"summary" : "Improper Input Validation in sails-hook-sockets",
"details" : "Sails.js before v1.0.0-46 allows attackers to cause a denial of service with a single request because there is no error handler in sails-hook-sockets to handle an empty pathname in a WebSocket request.",
"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" : "sails-hook-sockets"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-21036"
}, {
"type" : "WEB",
"url" : "https://github.com/balderdashy/sails-hook-sockets/commit/0533a4864b1920fd8fbb5287bc0889193c5faf44"
}, {
"type" : "WEB",
"url" : "https://github.com/balderdashy/sails-hook-sockets/commit/ff02114eaec090ee51db48435cc32d451662606e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/balderdashy/sails-hook-sockets"
}, {
"type" : "WEB",
"url" : "https://github.com/balderdashy/sails/blob/56f8276f6501a144a03d1f0f28df4ccdb4ad82e2/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2020/07/19/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-07-24T17:27:33Z",
"nvd_published_at" : "2020-07-21T14:15:00Z"
}
}