CVE-2018-21036 json
Improper Input Validation in sails-hook-sockets
published 2020-07-21 6 y ago modified 2026-06-17 4 mo ago also GHSA-f7f4-hqp2-7prc , EUVD-2020-0552
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm sails-hook-sockets 1.5.5
- sailsjs sails 1.0.0-46
Exploit prediction
1.77% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | sails-hook-sockets | <1.5.5 |
1.5.5 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/balderdashy/sails-hook-sockets/commit/ff02114eaec090ee51db48435cc32d451662606e
web, patch, third-party-advisory
-
github.com
/balderdashy/sails-hook-sockets/commit/0533a4864b1920fd8fbb5287bc0889193c5faf44
web, patch, third-party-advisory
-
github.com
/balderdashy/sails/blob/56f8276f6501a144a03d1f0f28df4ccdb4ad82e2/CHANGELOG.md
web, third-party-advisory
-
openwall.com
/lists/oss-security/2020/07/19/1
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-21036
advisory
-
github.com
/balderdashy/sails-hook-sockets
package
Sources
- CVE List CVE-2018-21036
- GitHub Advisory GHSA-f7f4-hqp2-7prc
- NVD CVE-2018-21036
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.