{"id":"CVE-2023-38504","aliases":["CVE-2023-38504","GHSA-gpw9-fwm8-7rx7"],"related":[],"kind":"vulnerability","state":"published","title":"Sails DoS vulnerability for apps with sockets enabled","summary":"Sails is a realtime MVC Framework for Node.js. In Sails apps prior to version 1.5.7,, an attacker can send a virtual request that will cause the node process to crash. This behavior was fixed in Sails v1.5.7. As a workaround, disable the sockets hook and remove the `sails.io.js` client.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sails is a realtime MVC Framework for Node.js. In Sails apps prior to version 1.5.7,, an attacker can send a virtual request that will cause the node process to crash. This behavior was fixed in Sails v1.5.7. As a workaround, disable the sockets hook and remove the `sails.io.js` client.","source":"cvelist"},{"lang":"en","text":"### Impact\nIn Sails apps <=v1.5.6, an attacker can send a virtual request that will cause the node process to crash. \n\n### Patches\nThis behavior was fixed in Sails [v1.5.7](https://github.com/balderdashy/sails/releases/tag/v1.5.7)\n\n### Workarounds\nDisable the sockets hook and remove the `sails.io.js` client\n\n### References\nhttps://github.com/balderdashy/sails/pull/7287\n\nBig thanks to @ThomasRinsma at [Codean](https://www.linkedin.com/company/codeanio/)!","format":"markdown","source":"ghsa"}],"published":"2023-07-27T17:13:14.000Z","modified":"2026-06-17T06:10:36.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 1.5.7","status":"affected"}],"vendor":"balderdashy","product":"sails","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.5.7","status":"affected"}],"vendor":"sailsjs","product":"sails","cpe":"cpe:2.3:a:sailsjs:sails:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.7"}],"ecosystem":"npm","package":"sails","purl":"pkg:npm/sails","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.5.7"}],"vendor":"sailsjs","product":"sails","cpe":"cpe:2.3:a:sailsjs:sails:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/balderdashy/sails/security/advisories/GHSA-gpw9-fwm8-7rx7","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/balderdashy/sails/pull/7287","tags":["issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/balderdashy/sails/commit/4a023dc5095a4b30fdc8535f705ed34cd22d2f7d","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/balderdashy/sails/releases/tag/v1.5.7","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38504","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/balderdashy/sails","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-03T18:36:54.226Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38504","url":"https://www.cve.org/CVERecord?id=CVE-2023-38504","licence":"CVE Terms of Use","modified":"2024-10-03T18:39:16.029Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gpw9-fwm8-7rx7","url":"https://github.com/advisories/GHSA-gpw9-fwm8-7rx7","licence":"CC-BY-4.0","modified":"2023-11-08T04:13:08.434Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38504","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38504","licence":"Public domain","modified":"2026-06-17T06:10:36.163Z"}],"updatedAt":"2026-11-25T22:58:26.557Z","epss":{"score":0.00937,"percentile":0.61883,"date":"2026-12-01T12:00:22.000Z"}}