SQL Injection via GeoJSON in sequelize
Critical severity
GitHub Reviewed
Published
Sep 1, 2020
to the GitHub Advisory Database
•
Updated Apr 21, 2023
Description
Reviewed
Aug 31, 2020
Published to the GitHub Advisory Database
Sep 1, 2020
Last updated
Apr 21, 2023
Affected versions of
sequelize
are vulnerable to SQL Injection in Models that have fields with theGEOMETRY
DataType. This vulnerability occurs because single quotes in document values are not escaped for GeoJSON documents usingST_GeomFromGeoJSON
, and MySQL GeoJSON documents usingGeomFromText
.Recommendation
Update to version 3.23.6 or later.
References