All reports
Medium

SUCHMOKUO node-worker-threads-pool denial of service Vulnerability

Affected versions

Affected versions
<= 1.4.3
Fixed version
Not reported

Exploitation

CVE-2021-29057

Probability of exploitation in the next 30 days: 0.59%

FIRST EPSS · 2026-11-22

Description

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.

This can be mitigated by manually creating a timeout. For example:

const { StaticPool } = require(\"node-worker-threads-pool\");
	
	const staticPool = new StaticPool({
 size: 1,
 task: (n) => {
 while (n) {
 console.log(\"a\");
 }
 return n;
 }
});
 
 staticPool.createExecutor().setTimeout(10).exec(1).then((result) => {
 console.log(\"result from thread pool:\", result);
}).catch(() => console.error('timeout'));

Links

Credits

  • nalandial