Regular Expression Denial of Service in sql-injection

sql-injection Updated 02 Oct 2025

Summary

03/09/2020
HIGH
No i
High
Not published

GHSA-hvxq-j2r4-4jm8: Regular Expression Denial of Service in sql-injection. Affects sql-injection versions >= 0.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The sql-injection package is an npm package that is used for processing a request's body with regular expressions. It is vulnerable to Regular Expression Denial of Service, which means that it may take exponentially longer to execute for large inputs.

Vulnerability Detail

The vulnerability in the sql-injection package arises from the way it processes regular expressions. When processing large inputs, the regular expressions can take a significant amount of time to execute, leading to a denial of service. This can be exploited by an attacker to cause a slowdown or even a complete halt in the application's functionality. The impact of this vulnerability can be severe, as it can lead to service disruption and potential financial losses.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no fix available at the moment, a possible workaround is to manually review and validate user input before processing it with the sql-injection package. This can involve implementing input validation and sanitization techniques to ensure that only safe and expected input is processed.

Conclusion

The sql-injection package is vulnerable to Regular Expression Denial of Service, which can lead to a denial of service and potential service disruption. Currently, there is no fix available, so it is recommended to consider using alternative packages and implementing input validation and sanitization techniques to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for sql-injection →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service, causing a slowdown or complete halt in the application's functionality.

No, there is currently no fix available for this vulnerability in the sql-injection package.

It is recommended to consider using alternative packages until a fix is made available for the sql-injection package.

One way to mitigate the risk is to manually review and validate user input before processing it with the sql-injection package.

You can find more information about this vulnerability in the advisory database provided by GitHub.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback