GHSA-jcgr-9698-82jx Improper Neutralization of Special Elements used in a Command ('Command Injection') in @floffah/build

Not scored Published

Attackers can inject malicious commands via esbuild targets in @floffah/build, potentially compromising project settings and executing code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is GHSA-jcgr-9698-82jx?

GHSA-jcgr-9698-82jx is a command injection vulnerability in @floffah/build, published on 28 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Impact

If you are using the esbuild target or command you are at risk of code/option injection. Attackers can use the command line option to maliciously change your settings in order to damage your project.

Patches

The problem has been patched in v1.0.0 as it uses a proper method to pass configs to esbuild/estrella.

Workarounds

There is no work around. You should update asap.

Notes

This notice is mainly just to make sure people update to the latest version. This isn't that bad, but should encourage you to update.

Which versions are affected by GHSA-jcgr-9698-82jx?

2 open source packages ship an affected version, including @floffah/build.

PackageAffectedFixed in
@floffah/build npmAll versions1.0.0
@floffah/build npmAll versions1.0.0

How do I fix GHSA-jcgr-9698-82jx?

Upgrade @floffah/build to 1.0.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is GHSA-jcgr-9698-82jx being exploited?

There is no known exploitation of GHSA-jcgr-9698-82jx in the wild and no public exploit code.

Sources

Is GHSA-jcgr-9698-82jx in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free