@diez/generation@10.2.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.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

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.

*