Description
This affects the package total.js before 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.
Remediation
References
https://github.com/totaljs/framework/commit/6192491ab2631e7c1d317c221f18ea613e2c18a5
https://snyk.io/vuln/SNYK-JS-TOTALJS-1046672
Related Vulnerabilities
CVE-2012-0818 Vulnerability in maven package org.jboss.resteasy:resteasy-jaxrs
CVE-2020-28052 Vulnerability in maven package org.bouncycastle:bcprov-jdk15to18
CVE-2022-23496 Vulnerability in maven package nl.basjes.parse.useragent:yauaa-hive
CVE-2019-13173 Vulnerability in maven package org.webjars:fstream
CVE-2021-3644 Vulnerability in maven package org.wildfly.core:wildfly-controller