Vulnerabilities

2 via 3 paths

Dependencies

220

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 1
Status
  • 2
  • 0
  • 0

critical severity

Arbitrary Code Injection

  • Vulnerable module: gray-matter
  • Introduced through: gray-matter@4.0.3 and @grekt/engine@6.4.0

Detailed paths

  • Introduced through: @grekt/cli@grekt-labs/cli › gray-matter@4.0.3
  • Introduced through: @grekt/cli@grekt-labs/cli › @grekt/engine@6.4.0 › gray-matter@4.0.3

Overview

gray-matter is a Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and

Affected versions of this package are vulnerable to Arbitrary Code Injection via the eval process in lib/engines.js when parsing front matter with the language set to js or javascript. An attacker can execute arbitrary code by supplying crafted input that is evaluated by the JavaScript engine.

Remediation

There is no fixed version for gray-matter.

References

medium severity
new

Incorrect Regular Expression

  • Vulnerable module: picomatch
  • Introduced through: fast-glob@3.3.3

Detailed paths

  • Introduced through: @grekt/cli@grekt-labs/cli › 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