{"id":"CVE-2021-29057","aliases":[],"url":"https://o3.security/vulnerability/CVE-2021-29057","summary":"SUCHMOKUO node-worker-threads-pool denial of service Vulnerability","details":"An issue was discovered in StaticPool in SUCHMOKUO node-worker-threads-pool version 1.4.3 that allows attackers to cause a denial of service.\n\nThis can be mitigated by manually creating a timeout. For example:\n\n```ts\nconst { StaticPool } = require(\\\"node-worker-threads-pool\\\");\n\t\n\tconst staticPool = new StaticPool({\n size: 1,\n task: (n) => {\n while (n) {\n console.log(\\\"a\\\");\n }\n return n;\n }\n});\n \n staticPool.createExecutor().setTimeout(10).exec(1).then((result) => {\n console.log(\\\"result from thread pool:\\\", result);\n}).catch(() => console.error('timeout'));\n```","published":"2023-08-11T15:30:46Z","modified":"2024-10-03T17:26:26Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"node-worker-threads-pool","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29057"},{"type":"WEB","url":"https://github.com/SUCHMOKUO/node-worker-threads-pool/issues/20"},{"type":"PACKAGE","url":"https://github.com/SUCHMOKUO/node-worker-threads-pool"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2024-10-03T17:26:26Z"}}