VDB
Sign up
HIGH8.6

GHSA-4449-hg37-77v8

Command injection in total.js

Quick fix

GHSA-4449-hg37-77v8 — total.js: upgrade to the fixed version with the command below.

npm install total.js@3.4.7

Details

There is a command injection vulnerability that affects the package total.js before version 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build the command that is then executed using child_process.spawn. The issue occurs because child_process.spawn is called with the option shell set to true and because the type parameter is not properly sanitized.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/total.js
Introduced in: 0Fixed in: 3.4.7
Fixnpm install total.js@3.4.7

References