GHSA-hvxq-j2r4-4jm8 Regular Expression Denial of Service in sql-injection
Attackers can cause denial of service in applications using the sql-injection npm package by sending large inputs that trigger exponential regex execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is GHSA-hvxq-j2r4-4jm8?
GHSA-hvxq-j2r4-4jm8 is a denial of service vulnerability in sql-injection, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by GHSA-hvxq-j2r4-4jm8?
2 open source packages ship an affected version, including sql-injection.
| Package | Affected | Fixed in |
|---|---|---|
sql-injection npm | From 0.0.0 | None |
sql-injection npm | From 0.0.0 | None |
How do I fix GHSA-hvxq-j2r4-4jm8?
No fix has been published for GHSA-hvxq-j2r4-4jm8 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-hvxq-j2r4-4jm8 being exploited?
There is no known exploitation of GHSA-hvxq-j2r4-4jm8 in the wild and no public exploit code.