All reports
Critical

SQL Injection via GeoJSON in sequelize

Affected versions

Affected versions
>= 3.4.0, < 3.23.6
Fixed version
3.23.6

Description

Affected versions of sequelize are vulnerable to SQL Injection in Models that have fields with the GEOMETRY DataType. This vulnerability occurs because single quotes in document values are not escaped for GeoJSON documents using ST_GeomFromGeoJSON, and MySQL GeoJSON documents using GeomFromText.

Recommendation

Update to version 3.23.6 or later.

Links

Credits

  • tdunlap607