Vulnerabilities

4 via 14 paths

Dependencies

167

Source

GitHub

Commit

4f27936d

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 3
Status
  • 4
  • 0
  • 0

medium severity

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: inflight
  • Introduced through: node-gyp@9.4.1

Detailed paths

  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 node-gyp@9.4.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 node-gyp@9.4.1 rimraf@3.0.2 glob@7.2.3 inflight@1.0.6
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 node-gyp@9.4.1 make-fetch-happen@10.2.1 cacache@16.1.3 glob@8.1.0 inflight@1.0.6
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 node-gyp@9.4.1 make-fetch-happen@10.2.1 cacache@16.1.3 rimraf@3.0.2 glob@7.2.3 inflight@1.0.6
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 node-gyp@9.4.1 make-fetch-happen@10.2.1 cacache@16.1.3 @npmcli/move-file@2.0.1 rimraf@3.0.2 glob@7.2.3 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.

References

low severity
new

Improper Authorization

  • Vulnerable module: undici
  • Introduced through: discord.js@14.14.1

Detailed paths

  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 undici@5.27.2
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 @discordjs/rest@2.2.0 undici@5.27.2
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 @discordjs/ws@1.0.2 @discordjs/rest@2.2.0 undici@5.27.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Improper Authorization due to improper handling of Proxy-Authorization headers during cross-origin redirects in certain methods. An attacker can exploit this behavior by inducing a victim to make a request that triggers a cross-origin redirect, potentially leaking sensitive information contained in the Proxy-Authorization header.

Remediation

Upgrade undici to version 5.28.4, 6.11.1 or higher.

References

low severity

Permissive Cross-domain Policy with Untrusted Domains

  • Vulnerable module: undici
  • Introduced through: discord.js@14.14.1

Detailed paths

  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 undici@5.27.2
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 @discordjs/rest@2.2.0 undici@5.27.2
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 @discordjs/ws@1.0.2 @discordjs/rest@2.2.0 undici@5.27.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Permissive Cross-domain Policy with Untrusted Domains due to not clearing Proxy-Authentication headers on cross-origin redirects. An attacker can intercept the improperly cleared headers.

Remediation

Upgrade undici to version 5.28.3, 6.6.1 or higher.

References

low severity
new

Improper Access Control

  • Vulnerable module: undici
  • Introduced through: discord.js@14.14.1

Detailed paths

  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 undici@5.27.2
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 @discordjs/rest@2.2.0 undici@5.27.2
  • Introduced through: karma-simple@shikhir-arora/karma-simple#4f27936d3fa4c1aad8d673e4c54d0440da94b167 discord.js@14.14.1 @discordjs/ws@1.0.2 @discordjs/rest@2.2.0 undici@5.27.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Improper Access Control due to the integrity option passed to fetch(). An attacker can alter this option, allowing fetch() to accept requests as valid even if they have been tampered with.

Remediation

Upgrade undici to version 5.28.4, 6.11.1 or higher.

References