GHSA-mpcx-8qqw-rmcq: Waterline sequel SQL Injection Vulnerability
HIGHGHSA-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
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.
npm install waterline-sequel@0.5.1
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
GHSA-mpcx-8qqw-rmcq Affected Waterline sequel Versions
1 component(s)| 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?
Which Waterline sequel versions are affected?
What version fixes GHSA-mpcx-8qqw-rmcq?
Is waterline-sequel affected?
What CWE is associated with GHSA-mpcx-8qqw-rmcq?
How can I check npm dependencies for GHSA-mpcx-8qqw-rmcq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}