CVE-2018-21036: Improper Input Validation in sails-hook-sockets

sails-hook-sockets Updated 02 Oct 2025

Summary

24/07/2020
Yes i
High
7.5

CVE-2018-21036: Improper Input Validation in sails-hook-sockets. Affects sails-hook-sockets versions < 1.5.5. Fixed in 1.5.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

sails-hook-sockets is an npm package that provides WebSocket support for Sails.js, a web application framework for Node.js. It allows developers to easily integrate real-time communication capabilities into their Sails.js applications. However, versions of sails-hook-sockets prior to v1.0.0-46 are vulnerable to an improper input validation issue.

Vulnerability Detail

The vulnerability in sails-hook-sockets arises from the absence of an error handler to handle an empty pathname in a WebSocket request. This allows an attacker to exploit the vulnerability by sending a single request with an empty pathname, leading to a denial of service (DoS) condition. The lack of proper input validation can cause the application to crash or become unresponsive, impacting its availability.

How To Fix

Minimum fixed version

1.5.5

This is the first release that contains the fix.

npm install sails-hook-sockets@1.5.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the package to the fixed version as soon as possible.

Conclusion

In conclusion, the sails-hook-sockets package prior to v1.0.0-46 is vulnerable to an improper input validation issue that can lead to a denial of service (DoS) condition. It is crucial for developers to update to version 1.5.5 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sails-hook-sockets →

Share this vulnerability

FAQ

The vulnerability can be exploited to cause a denial of service (DoS) condition, potentially leading to application crashes or unresponsiveness.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will provide real-time alerts for open-source vulnerabilities.

There are no known instances of this vulnerability being exploited in the wild at the time of this advisory.

Yes, the CVSS score for this vulnerability is 7.5, indicating a high severity.

How To Fix

Minimum fixed version

1.5.5

This is the first release that contains the fix.

npm install sails-hook-sockets@1.5.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.