GHSA-fvq6-55gv-jx9f

Suggest an improvement
Source
https://github.com/advisories/GHSA-fvq6-55gv-jx9f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-fvq6-55gv-jx9f/GHSA-fvq6-55gv-jx9f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fvq6-55gv-jx9f
Aliases
Published
2020-09-01T15:21:05Z
Modified
2023-11-08T03:58:04.618107Z
Summary
SQL Injection in mysql
Details

Versions of mysql prior to 2.0.0-alpha8 are affected by a SQL Injection vulnerability in the mysql.escape() function, which does not properly escape object keys.

Recommendation

Update to version 2.0.0-alpha8 or later.

Database specific
{
    "github_reviewed_at": "2020-08-31T18:09:53Z",
    "nvd_published_at": "2018-05-29T20:29:00Z",
    "cwe_ids": [
        "CWE-89"
    ],
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / mysql

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.0-alpha8

Database specific

last_known_affected_version_range
"<= 2.0.0-alpha7"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-fvq6-55gv-jx9f/GHSA-fvq6-55gv-jx9f.json"