Vulnerabilities in pkg:npm/sql-injection

PACKAGE
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/sql-injection

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-hvxq-j2r4-4jm8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Sql injection
Package Ecosystem npm
Published Date
Last Updated

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.

sql-injection fixed: Latest secure release
npm install sql-injection@Latest secure release
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 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

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. ## Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

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?
GHSA-hvxq-j2r4-4jm8 is a security vulnerability in Sql injection involving Regular Expression Denial of Service in sql-injection under General Security Weakness.
Which Sql injection versions are affected?
Affected versions include releases prior to current release patches across affected packages: sql-injection.
What version fixes GHSA-hvxq-j2r4-4jm8?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is sql-injection affected?
Yes, sql-injection is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-hvxq-j2r4-4jm8?
GHSA-hvxq-j2r4-4jm8 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-hvxq-j2r4-4jm8?
Run the dependency tree command: 'npm ls sql-injection'. 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-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
  }
}