GHSA-8f93-rv4p-x4jw SQL Injection in sql

Not scored Published

The sql library fails to escape parameters, allowing attackers to execute arbitrary SQL commands and access or modify database data.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is GHSA-8f93-rv4p-x4jw?

GHSA-8f93-rv4p-x4jw is a SQL injection vulnerability in sql, published on 12 Jun 2019. It can be exploited over the network, with no action from the victim.

Official description

All versions of sql are vulnerable to sql injection as it does not properly escape parameters when building SQL queries.

Recommendation

No fix is currently available for this vulnerability. It is our recommendation to not install or use this module until a fix is available.

Which versions are affected by GHSA-8f93-rv4p-x4jw?

2 open source packages ship an affected version, including sql.

PackageAffectedFixed in
sql npmAll versions to 0.78.0None
sql npmAll versions to 0.78.0None

How do I fix GHSA-8f93-rv4p-x4jw?

No fix has been published for GHSA-8f93-rv4p-x4jw yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is GHSA-8f93-rv4p-x4jw being exploited?

There is no known exploitation of GHSA-8f93-rv4p-x4jw in the wild and no public exploit code.

Sources

Is GHSA-8f93-rv4p-x4jw in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free