Vulnerabilities

5 via 13 paths

Dependencies

474

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 4
Status
  • 5
  • 0
  • 0

high severity

Improper Validation of Specified Quantity in Input

  • Vulnerable module: cssom
  • Introduced through: jsdom@16.7.0

Detailed paths

  • Introduced through: openrunner@computestdev/Openrunner › jsdom@16.7.0 › cssom@0.4.4
  • Introduced through: openrunner@computestdev/Openrunner › jsdom@16.7.0 › cssstyle@2.3.0 › cssom@0.3.8

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via CSSStyleDeclaration.setProperty(), which fails to validate reserved property names. An attacker can supply a stylesheet containing a declaration named length, replacing the internal counter and triggering excessive memory allocation during cssText serialization, causing process termination.

Remediation

There is no fixed version for cssom.

References

medium severity
new

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: archiver@4.0.2 and browserify@16.5.2

Detailed paths

  • Introduced through: openrunner@computestdev/Openrunner › archiver@4.0.2 › glob@7.2.3 › minimatch@3.1.5
    Remediation: Upgrade to archiver@5.0.0.
  • Introduced through: openrunner@computestdev/Openrunner › browserify@16.5.2 › glob@7.2.3 › minimatch@3.1.5
  • Introduced through: openrunner@computestdev/Openrunner › archiver@4.0.2 › archiver-utils@2.1.0 › glob@7.2.3 › minimatch@3.1.5
  • Introduced through: openrunner@computestdev/Openrunner › archiver@4.0.2 › zip-stream@3.0.1 › archiver-utils@2.1.0 › glob@7.2.3 › 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

Use of a Cryptographic Primitive with a Risky Implementation

  • Vulnerable module: elliptic
  • Introduced through: browserify@16.5.2

Detailed paths

  • Introduced through: openrunner@computestdev/Openrunner › browserify@16.5.2 › crypto-browserify@3.12.1 › browserify-sign@4.2.6 › elliptic@6.6.1
  • Introduced through: openrunner@computestdev/Openrunner › browserify@16.5.2 › crypto-browserify@3.12.1 › create-ecdh@4.0.5 › elliptic@6.6.1

Overview

elliptic is a fast elliptic-curve cryptography implementation in plain javascript.

Affected versions of this package are vulnerable to Use of a Cryptographic Primitive with a Risky Implementation due to the incorrect computation of the byte-length of k value with leading zeros resulting in its truncation. An attacker can obtain the secret key by analyzing both a faulty signature generated by a vulnerable implementation and a correct signature for the same inputs.

Note:

There is a distinct but related issue CVE-2024-48948.

Remediation

There is no fixed version for elliptic.

References

medium severity

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: inflight
  • Introduced through: archiver@4.0.2 and browserify@16.5.2

Detailed paths

  • Introduced through: openrunner@computestdev/Openrunner › archiver@4.0.2 › glob@7.2.3 › inflight@1.0.6
  • Introduced through: openrunner@computestdev/Openrunner › browserify@16.5.2 › glob@7.2.3 › inflight@1.0.6
  • Introduced through: openrunner@computestdev/Openrunner › archiver@4.0.2 › archiver-utils@2.1.0 › glob@7.2.3 › inflight@1.0.6
  • Introduced through: openrunner@computestdev/Openrunner › archiver@4.0.2 › zip-stream@3.0.1 › archiver-utils@2.1.0 › 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

medium severity

Incorrect Control Flow Scoping

  • Vulnerable module: @tootallnate/once
  • Introduced through: jsdom@16.7.0

Detailed paths

  • Introduced through: openrunner@computestdev/Openrunner › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2
    Remediation: Upgrade to jsdom@18.0.0.

Overview

Affected versions of this package are vulnerable to Incorrect Control Flow Scoping in promise resolving when AbortSignal option is used. The Promise remains in a permanently pending state after the signal is aborted, causing any await or .then() usage to hang indefinitely. This can cause a control-flow leak that can lead to stalled requests, blocked workers, or degraded application availability.

Remediation

Upgrade @tootallnate/once to version 2.0.1, 3.0.1 or higher.

References