Description
compile-sass prior to 1.0.5 allows execution of arbritary commands. The function "setupCleanupOnExit(cssPath)" within "dist/index.js" is executed as part of the "rm" command without any sanitization.
Remediation
References
https://github.com/eiskalteschatten/compile-sass/commit/d9ada7797ff93875b6466dea7a78768e90a0f8d2
https://snyk.io/vuln/SNYK-JS-COMPILESASS-551804
Related Vulnerabilities
CVE-2021-21347 Vulnerability in maven package com.thoughtworks.xstream:xstream
CVE-2021-23425 Vulnerability in npm package trim-off-newlines
CVE-2021-32620 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore
CVE-2021-23490 Vulnerability in npm package parse-link-header
CVE-2022-24785 Vulnerability in maven package org.webjars.bower:moment