GHSA-jcgr-9698-82jx: @floffah/build Improper Neutralization Of Special Elements Vulnerability

LOW
CWE-77
Published
Advisory Summary

GHSA-jcgr-9698-82jx is a LOW improper neutralization of special elements vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting @floffah/build libraries in the npm ecosystem. The issue involves improper neutralization of special elements used in a command ('command injection') in @floffah/build. Remediation is available by upgrading affected packages to version 1.0.0.

GHSA-jcgr-9698-82jx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jcgr-9698-82jx
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product @floffah/build
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-jcgr-9698-82jx

To remediate this vulnerability, upgrade all affected @floffah/build dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@floffah/build fixed: 1.0.0
npm install @floffah/build@1.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @floffah/build

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-jcgr-9698-82jx, inspect your project dependencies using npm:

npm ls @floffah/build

Analyze the terminal output to locate any version of @floffah/build in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0), your application is affected.

Note: The npm ls @floffah/build command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In @floffah/build, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

GHSA-jcgr-9698-82jx Affected @floffah/build Versions

1 component(s)
Fixed Versions:
1.0.0
Product / Package Ecosystem Affected Versions Fixed Version
@floffah/build
npm
< 1.0.0
1.0.0

References

Frequently Asked Questions

What is GHSA-jcgr-9698-82jx?
GHSA-jcgr-9698-82jx is a security vulnerability in @floffah/build involving Improper Neutralization of Special Elements used in a Command ('Command Injection') in @floffah/build under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which @floffah/build versions are affected?
Affected versions include releases prior to 1.0.0 across affected packages: @floffah/build.
What version fixes GHSA-jcgr-9698-82jx?
Upgrading to 1.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @floffah/build affected?
Yes, @floffah/build is affected in releases prior to 1.0.0. Upgrade your dependency to 1.0.0 or later.
What CWE is associated with GHSA-jcgr-9698-82jx?
GHSA-jcgr-9698-82jx is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check npm dependencies for GHSA-jcgr-9698-82jx?
Run the dependency tree command: 'npm ls @floffah/build'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jcgr-9698-82jx",
  "modified" : "2021-05-27T21:05:29Z",
  "published" : "2021-05-28T15:53:40Z",
  "aliases" : [ ],
  "summary" : "Improper Neutralization of Special Elements used in a Command ('Command Injection') in @floffah/build",
  "details" : "### Impact\nIf 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.\n\n### Patches\nThe problem has been patched in v1.0.0 as it uses a proper method to pass configs to esbuild/estrella.\n\n### Workarounds\nThere is no work around. You should update asap.\n\n### Notes\nThis notice is mainly just to make sure people update to the latest version. This isn't that bad, but should encourage you to update.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@floffah/build"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Floffah/build/security/advisories/GHSA-jcgr-9698-82jx"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-27T21:05:29Z",
    "nvd_published_at" : null
  }
}