Vulnerabilities in pkg:npm/sql-injection
PACKAGEGHSA-hvxq-j2r4-4jm8 is a HIGH denial of service vulnerability (General Security Weakness) affecting Sql injection libraries in the npm ecosystem. The issue involves regular expression denial of service in sql-injection. Remediation is available in the latest vendor maintenance releases.
pkg:npm/sql-injection
Vulnerability advisories affecting package pkg:npm/sql-injection. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hvxq-j2r4-4jm8 | - | HIGH | Regular Expression Denial of Service in sql-injection |
GHSA-hvxq-j2r4-4jm8 at a Glance
How to Fix GHSA-hvxq-j2r4-4jm8
To remediate this vulnerability, upgrade all affected Sql injection 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 sql-injection@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sql-injection
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-hvxq-j2r4-4jm8, inspect your project dependencies using npm:
npm ls sql-injection
Analyze the terminal output to locate any version of Sql injection in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls sql-injection 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 Sql injection, 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-hvxq-j2r4-4jm8 Affected Sql injection Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sql-injection
|
npm |
≥ 0.0.0
|
|
References
Frequently Asked Questions
What is GHSA-hvxq-j2r4-4jm8?
Which Sql injection versions are affected?
What version fixes GHSA-hvxq-j2r4-4jm8?
Is sql-injection affected?
What CWE is associated with GHSA-hvxq-j2r4-4jm8?
How can I check npm dependencies for GHSA-hvxq-j2r4-4jm8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hvxq-j2r4-4jm8",
"modified" : "2020-08-31T18:49:33Z",
"published" : "2020-09-03T20:31:04Z",
"aliases" : [ ],
"summary" : "Regular Expression Denial of Service in sql-injection",
"details" : "All versions of `sql-injection` are vulnerable to Regular Expression Denial of Service. The package processes a request's body with regular expressions that may take exponentially longer to execute for large inputs.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sql-injection"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1163"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:49:33Z",
"nvd_published_at" : null
}
}