Vulnerabilities

5 via 5 paths

Dependencies

322

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 5
Status
  • 5
  • 0
  • 0

medium severity

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: @oclif/core@1.26.2

Detailed paths

  • Introduced through: typewriter@segmentio/typewriter › @oclif/core@1.26.2 › ejs@3.1.10 › jake@10.9.4 › filelist@1.0.6 › minimatch@5.1.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
new

Incorrect Regular Expression

  • Vulnerable module: picomatch
  • Introduced through: @oclif/core@1.26.2

Detailed paths

  • Introduced through: typewriter@segmentio/typewriter › @oclif/core@1.26.2 › globby@11.1.0 › fast-glob@3.3.3 › micromatch@4.0.8 › picomatch@2.3.2

Overview

Affected versions of this package are vulnerable to Incorrect Regular Expression via the globstar function in lib/parse.js, where globstar (**) patterns are compiled without the dotAll flag, causing the generated regular expression to use . which does not match line terminator characters. An attacker who controls file names, object keys, or archive entry names can embed newline characters in those names to evade **-based deny patterns, causing excluded resources to be included and exposed.

Remediation

A fix was pushed into the master branch but not yet published.

References

medium severity

Information Exposure

  • Vulnerable module: node-fetch
  • Introduced through: quicktype-core@6.1.12

Detailed paths

  • Introduced through: typewriter@segmentio/typewriter › quicktype-core@6.1.12 › isomorphic-fetch@2.2.1 › node-fetch@1.7.3
    Remediation: Upgrade to quicktype-core@20.0.14.

Overview

node-fetch is a light-weight module that brings window.fetch to node.js

Affected versions of this package are vulnerable to Information Exposure when fetching a remote url with Cookie, if it get a Location response header, it will follow that url and try to fetch that url with provided cookie. This can lead to forwarding secure headers to 3th party.

Remediation

Upgrade node-fetch to version 2.6.7, 3.1.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: node-fetch
  • Introduced through: quicktype-core@6.1.12

Detailed paths

  • Introduced through: typewriter@segmentio/typewriter › quicktype-core@6.1.12 › isomorphic-fetch@2.2.1 › node-fetch@1.7.3
    Remediation: Upgrade to quicktype-core@20.0.14.

Overview

node-fetch is a light-weight module that brings window.fetch to node.js

Affected versions of this package are vulnerable to Denial of Service (DoS). Node Fetch did not honor the size option after following a redirect, which means that when a content size was over the limit, a FetchError would never get thrown and the process would end without failure.

Remediation

Upgrade node-fetch to version 2.6.1, 3.0.0-beta.9 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: got
  • Introduced through: latest-version@5.1.0

Detailed paths

  • Introduced through: typewriter@segmentio/typewriter › latest-version@5.1.0 › package-json@6.5.0 › got@9.6.0
    Remediation: Upgrade to latest-version@6.0.0.

Overview

Affected versions of this package are vulnerable to Open Redirect due to missing verification of requested URLs. It allowed a victim to be redirected to a UNIX socket.

Remediation

Upgrade got to version 11.8.5, 12.1.0 or higher.

References