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://snyk.io/vuln/SNYK-JS-TOTALJS-1046672
https://github.com/totaljs/framework/commit/6192491ab2631e7c1d317c221f18ea613e2c18a5
Related Vulnerabilities
CVE-2020-26945 Vulnerability in maven package org.mybatis:mybatis
CVE-2022-45136 Vulnerability in maven package org.apache.jena:jena-sdb
CVE-2021-21409 Vulnerability in maven package io.netty:netty-codec-http2
CVE-2022-25937 Vulnerability in npm package glance
CVE-2023-34459 Vulnerability in npm package @openzeppelin/contracts