Vulnerabilities |
4 via 4 paths |
|---|---|
Dependencies |
87 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: ioredis
- Introduced through: @imqueue/rpc@3.9.5
Detailed paths
-
Introduced through: @imqueue/pg-sequelize@imqueue/pg-sequelize › @imqueue/rpc@3.9.5 › @imqueue/core@3.5.4 › ioredis@5.11.1
Overview
ioredis is a Redis client for Node.js.
Affected versions of this package are vulnerable to Uncontrolled Recursion in the RESP protocol parser in lib/parser.js. An attacker can crash the Node.js client process by sending crafted RESP byte streams with repeated nested array headers. The parser recurses while handling nested arrays, exhausting the V8 call stack and triggering an uncaught RangeError. In affected deployments that consume data from a malicious or compromised Redis endpoint, this terminates the process and disrupts Redis client operations.
Remediation
Upgrade ioredis to version 6.0.0-beta.1 or higher.
References
high severity
- Module: @imqueue/core
- Introduced through: @imqueue/rpc@3.9.5
Detailed paths
-
Introduced through: @imqueue/pg-sequelize@imqueue/pg-sequelize › @imqueue/rpc@3.9.5 › @imqueue/core@3.5.4
GPL-3.0 license
high severity
- Module: @imqueue/rpc
- Introduced through: @imqueue/rpc@3.9.5
Detailed paths
-
Introduced through: @imqueue/pg-sequelize@imqueue/pg-sequelize › @imqueue/rpc@3.9.5
GPL-3.0 license
medium severity
new
- Vulnerable module: minimatch
- Introduced through: sequelize-typescript@2.1.6
Detailed paths
-
Introduced through: @imqueue/pg-sequelize@imqueue/pg-sequelize › sequelize-typescript@2.1.6 › glob@7.2.0 › minimatch@3.1.5
Overview
minimatch is a minimal matching utility.
Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.
Remediation
Upgrade minimatch to version 11.0.1 or higher.
References
medium severity
- Vulnerable module: uuid
- Introduced through: sequelize@6.37.8
Detailed paths
-
Introduced through: @imqueue/pg-sequelize@imqueue/pg-sequelize › sequelize@6.37.8 › uuid@8.3.2
Overview
uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.
PoC
cd /home/StrawHat/uuid
npm ci
npm run build
node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
['v4',()=>v4({},new Uint8Array(8),4)],
['v5',()=>v5('x',ns,new Uint8Array(8),4)],
['v6',()=>v6({},new Uint8Array(8),4)],
]) {
try { fn(); console.log(name,'NO_THROW'); }
catch(e){ console.log(name,'THREW',e.name); }
}"
Remediation
Upgrade uuid to version 11.1.1, 14.0.0 or higher.
References
medium severity
- Vulnerable module: inflight
- Introduced through: sequelize-typescript@2.1.6
Detailed paths
-
Introduced through: @imqueue/pg-sequelize@imqueue/pg-sequelize › sequelize-typescript@2.1.6 › glob@7.2.0 › inflight@1.0.6
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the makeres function due to improperly deleting keys from the reqs object after execution of callbacks. This behavior causes the keys to remain in the reqs object, which leads to resource exhaustion.
Exploiting this vulnerability results in crashing the node process or in the application crash.
Note: This library is not maintained, and currently, there is no fix for this issue. To overcome this vulnerability, several dependent packages have eliminated the use of this library.
To trigger the memory leak, an attacker would need to have the ability to execute or influence the asynchronous operations that use the inflight module within the application. This typically requires access to the internal workings of the server or application, which is not commonly exposed to remote users. Therefore, “Attack vector” is marked as “Local”.
PoC
const inflight = require('inflight');
function testInflight() {
let i = 0;
function scheduleNext() {
let key = `key-${i++}`;
const callback = () => {
};
for (let j = 0; j < 1000000; j++) {
inflight(key, callback);
}
setImmediate(scheduleNext);
}
if (i % 100 === 0) {
console.log(process.memoryUsage());
}
scheduleNext();
}
testInflight();
Remediation
There is no fixed version for inflight.