GHSA-mpcx-8qqw-rmcq: Waterline sequel SQL Injection Vulnerability

HIGH
Published
Advisory Summary

GHSA-mpcx-8qqw-rmcq is a HIGH sql injection vulnerability (General Security Weakness) affecting Waterline sequel libraries in the npm ecosystem. The issue involves sql injection in waterline-sequel. Remediation is available by upgrading affected packages to version 0.5.1.

GHSA-mpcx-8qqw-rmcq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mpcx-8qqw-rmcq
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Waterline sequel
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-mpcx-8qqw-rmcq

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

waterline-sequel fixed: 0.5.1
npm install waterline-sequel@0.5.1
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 waterline-sequel

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-mpcx-8qqw-rmcq, inspect your project dependencies using npm:

npm ls waterline-sequel

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

Note: The npm ls waterline-sequel 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 General Security Weakness. In Waterline sequel, 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

Withdrawn: Duplicate of GHSA-cgpp-wm2h-6hqx

GHSA-mpcx-8qqw-rmcq Affected Waterline sequel Versions

1 component(s)
Fixed Versions:
0.5.1
Product / Package Ecosystem Affected Versions Fixed Version
waterline-sequel
npm
< 0.5.1
0.5.1

References

Frequently Asked Questions

What is GHSA-mpcx-8qqw-rmcq?
GHSA-mpcx-8qqw-rmcq is a security vulnerability in Waterline sequel involving SQL Injection in waterline-sequel under General Security Weakness.
Which Waterline sequel versions are affected?
Affected versions include releases prior to 0.5.1 across affected packages: waterline-sequel.
What version fixes GHSA-mpcx-8qqw-rmcq?
Upgrading to 0.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is waterline-sequel affected?
Yes, waterline-sequel is affected in releases prior to 0.5.1. Upgrade your dependency to 0.5.1 or later.
What CWE is associated with GHSA-mpcx-8qqw-rmcq?
GHSA-mpcx-8qqw-rmcq is classified under General Security Weakness.
How can I check npm dependencies for GHSA-mpcx-8qqw-rmcq?
Run the dependency tree command: 'npm ls waterline-sequel'. 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-mpcx-8qqw-rmcq",
  "modified" : "2020-08-19T21:51:20Z",
  "published" : "2020-08-19T21:51:20Z",
  "withdrawn" : "2020-08-19T21:51:20Z",
  "aliases" : [ ],
  "summary" : "SQL Injection in waterline-sequel",
  "details" : "Withdrawn: Duplicate of GHSA-cgpp-wm2h-6hqx",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "waterline-sequel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/balderdashy/waterline/issues/1219#issuecomment-157294530"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-cgpp-wm2h-6hqx"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-29T19:20:17Z",
    "nvd_published_at" : null
  }
}