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.
References (2)
Core 2
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/eiskalteschatten/compile-sass/commit/d9ada7797ff93875b6466dea7a78768e90a0f8d2
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-COMPILESASS-551804
Scores
CVSS v3
8.2
EPSS
0.0043
EPSS Percentile
62.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Details
CWE
CWE-78
Status
published
Products (2)
compile-sass_project/compile-sass
< 1.0.5
npm/compile-sass
0 - 1.0.5npm
Published
Feb 24, 2020
Tracked Since
Feb 18, 2026