Vulnerabilities

5 via 16 paths

Dependencies

385

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 5
  • 1
Severity
  • 6
Status
  • 5
  • 0
  • 1

medium severity
new

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: @snyk/code-client@4.26.3, glob@7.2.3 and others

Detailed paths

  • Introduced through: snyk-legacy@snyk/snyk › @snyk/code-client@4.26.3 › minimatch@10.2.6
  • Introduced through: snyk-legacy@snyk/snyk › @snyk/code-client@4.26.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: snyk-legacy@snyk/snyk › glob@7.2.3 › minimatch@3.1.5
    Remediation: Upgrade to glob@14.0.0.
  • Introduced through: snyk-legacy@snyk/snyk › snyk-cpp-plugin@2.24.7 › minimatch@3.1.5
  • Introduced through: snyk-legacy@snyk/snyk › rimraf@2.7.1 › glob@7.2.3 › minimatch@3.1.5
    Remediation: Upgrade to rimraf@4.0.0.
  • Introduced through: snyk-legacy@snyk/snyk › snyk-mvn-plugin@4.9.9 › glob@7.2.3 › minimatch@3.1.5
  • Introduced through: snyk-legacy@snyk/snyk › snyk-docker-plugin@9.22.3 › minimatch@9.0.9

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

Interpretation Conflict

  • Vulnerable module: adm-zip
  • Introduced through: adm-zip@0.6.1, snyk-cpp-plugin@2.24.7 and others

Detailed paths

  • Introduced through: snyk-legacy@snyk/snyk › adm-zip@0.6.1
  • Introduced through: snyk-legacy@snyk/snyk › snyk-cpp-plugin@2.24.7 › adm-zip@0.6.1
  • Introduced through: snyk-legacy@snyk/snyk › snyk-docker-plugin@9.22.3 › adm-zip@0.6.1

Overview

adm-zip is a JavaScript implementation for zip data compression for NodeJS.

Affected versions of this package are vulnerable to Interpretation Conflict via canonically equivalent ZIP entry names (e.g., ./hello.txt and hello.txt), which causes readEntries() to treat them as distinct entries while extractAllTo() resolves them to the same filesystem path. An attacker can craft a ZIP archive where getEntry() or readAsText() validates benign content from one entry while extractAllTo() subsequently writes malicious content from a duplicate entry to the same path, bypassing integrity checks.

Remediation

There is no fixed version for adm-zip.

References

medium severity

Improper Encoding or Escaping of Output

  • Vulnerable module: shescape
  • Introduced through: snyk-gradle-plugin@7.1.11

Detailed paths

  • Introduced through: snyk-legacy@snyk/snyk › snyk-gradle-plugin@7.1.11 › shescape@2.1.14
    Remediation: Upgrade to snyk-gradle-plugin@7.1.12.

Overview

shescape is a simple shell escape library

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the getEscapeFunction logic in src/internal/unix/busybox.js. An attacker can reveal the user's home directory and alter how a command interprets an assignment-prefixed value by supplying input such as :~ or a=~ to escape or escapeAll when Unix shell escaping targets BusyBox sh. On affected Unix systems where shell is set to "sh" or true and /bin/sh points to BusyBox, the escaped tilde is expanded in assignment contexts instead of being treated as data, causing commands like V=...; echo $V to print : followed by the home path.

Remediation

Upgrade shescape to version 2.1.15, 3.0.2 or higher.

References

medium severity

Improper Validation of Specified Index, Position, or Offset in Input

  • Vulnerable module: uuid
  • Introduced through: snyk-docker-plugin@9.22.3 and snyk-python-plugin@3.3.6

Detailed paths

  • Introduced through: snyk-legacy@snyk/snyk › snyk-docker-plugin@9.22.3 › snyk-poetry-lockfile-parser@1.10.1 › @snyk/error-catalog-nodejs-public@4.0.4 › uuid@9.0.1
  • Introduced through: snyk-legacy@snyk/snyk › snyk-python-plugin@3.3.6 › snyk-poetry-lockfile-parser@1.10.1 › @snyk/error-catalog-nodejs-public@4.0.4 › uuid@9.0.1

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

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: inflight
  • Introduced through: glob@7.2.3, rimraf@2.7.1 and others

Detailed paths

  • Introduced through: snyk-legacy@snyk/snyk › glob@7.2.3 › inflight@1.0.6
  • Introduced through: snyk-legacy@snyk/snyk › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
  • Introduced through: snyk-legacy@snyk/snyk › snyk-mvn-plugin@4.9.9 › 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
ignored

MPL-2.0 license

  • Module: shescape
  • Introduced through: @snyk/snyk-cocoapods-plugin@3.1.4, @snyk/snyk-hex-plugin@2.2.5 and others
  • Ignored path

    ∗

  • Expires

    in 96 years

Reason

: --about lists all dependency licenses which is a requirement of MPL-2.0

This issue was ignored via the project's .snyk policy file. To unignore it, update the policy file.

Detailed paths

  • Introduced through: snyk-legacy@snyk/snyk › @snyk/snyk-cocoapods-plugin@3.1.4 › shescape@2.1.15
  • Introduced through: snyk-legacy@snyk/snyk › @snyk/snyk-hex-plugin@2.2.5 › shescape@2.1.15
  • Introduced through: snyk-legacy@snyk/snyk › snyk-docker-plugin@9.22.3 › shescape@2.1.15
  • Introduced through: snyk-legacy@snyk/snyk › snyk-mvn-plugin@4.9.9 › shescape@2.1.15
  • Introduced through: snyk-legacy@snyk/snyk › snyk-python-plugin@3.3.6 › shescape@2.1.15
  • Introduced through: snyk-legacy@snyk/snyk › snyk-sbt-plugin@3.2.2 › shescape@2.1.15
  • Introduced through: snyk-legacy@snyk/snyk › snyk-gradle-plugin@7.1.11 › shescape@2.1.14