CVE-2023-27848
Description
broccoli-compass v0.2.4 was discovered to contain a remote code execution (RCE) vulnerability via the child_process function.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
broccoli-compass v0.2.4 contains an arbitrary command injection vulnerability via unsanitized filenames passed to the child_process exec function.
broccoli-compass v0.2.4 is a Sass-compass plugin for Broccoli that is vulnerable to arbitrary command injection (CWE-77). The vulnerability arises because the child_process exec function is called without sanitizing user-supplied filenames passed through the files option. When a filename containing shell metacharacters is included, the exec function interprets them as commands, leading to remote code execution (RCE) [1][2].
An attacker can exploit this by providing a specially crafted filename to an application that uses broccoli-compass as a dependency. The exploit requires no authentication beyond the ability to influence the list of files processed by the plugin — for example, via user uploads or configuration inputs. The proof-of-concept demonstrates that a filename like $(touch success);# results in the execution of the embedded command [2].
Successful exploitation allows an attacker to execute arbitrary operating system commands with the privileges of the Node.js process. This can lead to full system compromise, including data exfiltration, malware installation, or lateral movement within the network. The vulnerability is classified as high severity due to the remote code execution impact [1].
As of the advisory publication (April 2023), no patched version is available for broccoli-compass v0.2.4. Users should avoid passing unsanitized filenames to the plugin or consider replacing it with an actively maintained alternative. The project repository shows no recent activity, suggesting it may be abandoned [2].
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
broccoli-compassnpm | <= 0.2.4 | — |
Affected products
3- broccoli-compass/broccoli-compassdescription
- Range: = 0.2.4
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4News mentions
0No linked articles in our index yet.