GHSA-qc22-qwm9-j8rx: Npm groovy lint Remote Code Execution Vulnerability

CRITICAL
CWE-20
Published
Advisory Summary

GHSA-qc22-qwm9-j8rx is a CRITICAL remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Npm groovy lint libraries in the npm ecosystem. The issue involves remote code execution in npm-groovy-lint. Remediation is available by upgrading affected packages to version 9.1.0.

GHSA-qc22-qwm9-j8rx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qc22-qwm9-j8rx
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Npm groovy lint
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-qc22-qwm9-j8rx

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

npm-groovy-lint fixed: 9.1.0
npm install npm-groovy-lint@9.1.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 npm-groovy-lint

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-qc22-qwm9-j8rx, inspect your project dependencies using npm:

npm ls npm-groovy-lint

Analyze the terminal output to locate any version of Npm groovy lint in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.1.0), your application is affected.

Note: The npm ls npm-groovy-lint 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Npm groovy lint, 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

Versions of npm-groovy-lint prior to 9.1.0 bundle vulnerable versions of the Log4j library which are subject to remote code execution via jndi rendering. As a result npm-groovy-lint prior to 9.1.0 is also vulnerable.

GHSA-qc22-qwm9-j8rx Affected Npm groovy lint Versions

1 component(s)
Fixed Versions:
9.1.0
Product / Package Ecosystem Affected Versions Fixed Version
npm-groovy-lint
npm
< 9.1.0
9.1.0

References

Frequently Asked Questions

What is GHSA-qc22-qwm9-j8rx?
GHSA-qc22-qwm9-j8rx is a security vulnerability in Npm groovy lint involving Remote Code Execution in npm-groovy-lint under CWE-20: Improper Input Validation.
Which Npm groovy lint versions are affected?
Affected versions include releases prior to 9.1.0 across affected packages: npm-groovy-lint.
What version fixes GHSA-qc22-qwm9-j8rx?
Upgrading to 9.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is npm-groovy-lint affected?
Yes, npm-groovy-lint is affected in releases prior to 9.1.0. Upgrade your dependency to 9.1.0 or later.
What CWE is associated with GHSA-qc22-qwm9-j8rx?
GHSA-qc22-qwm9-j8rx is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for GHSA-qc22-qwm9-j8rx?
Run the dependency tree command: 'npm ls npm-groovy-lint'. 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-qc22-qwm9-j8rx",
  "modified" : "2021-12-20T16:57:06Z",
  "published" : "2021-12-20T16:59:31Z",
  "aliases" : [ ],
  "summary" : "Remote Code Execution in npm-groovy-lint",
  "details" : "Versions of npm-groovy-lint prior to 9.1.0 bundle vulnerable versions of the Log4j library which are subject to remote code execution via jndi rendering. As a result npm-groovy-lint prior to 9.1.0 is also vulnerable.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "npm-groovy-lint"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nvuillam/npm-groovy-lint/issues/194"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nvuillam/npm-groovy-lint/pull/195"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nvuillam/npm-groovy-lint/commit/0b664519019442052e0190170c2b1c5aff7d72e7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-jfh8-c2jp-5v3q"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nvuillam/npm-groovy-lint"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-12-20T16:57:06Z",
    "nvd_published_at" : null
  }
}