CVE-2018-21036
HIGH 7.5CVSS 3.1Improper Input Validation in sails-hook-sockets
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.
- Published
- 21 Jul 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-f7f4-hqp2-7prc
- Sources
- NVDJSONOSV GHSA-f7f4-hqp2-7prcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sailsjs | sailscpe:2.3:a:sailsjs:sails:*:*:*:*:*:node.js:*:* |
< 1.0.0-46 | 1.0.0-46 |
| OSV | npm | sails-hook-sockets | < 1.5.5 | 1.5.5 |
References
- http://www.openwall.com/lists/oss-security/2020/07/19/1 · Mailing List, Third Party Advisory, WEB
- https://github.com/balderdashy/sails-hook-sockets/commit/0533a4864b1920fd8fbb5287bc0889193c5faf44 · Patch, Third Party Advisory, WEB
- https://github.com/balderdashy/sails-hook-sockets/commit/ff02114eaec090ee51db48435cc32d451662606e · Patch, Third Party Advisory, WEB
- https://github.com/balderdashy/sails/blob/56f8276f6501a144a03d1f0f28df4ccdb4ad82e2/CHANGELOG.md · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-21036 · ADVISORY
- https://github.com/balderdashy/sails-hook-sockets · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Jul 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jul 2020)