ADVISORIES

GitHub Advisory Database

GHSA-5v9h-q3gj-c32x

SQL Injection via GeoJSON in sequelize

Critical CVE-2016-1000225

Details

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.

Affected packages

EcosystemPackageAffected versions
npmsequelize
From 3.4.0 before 3.23.6 (fixed in 3.23.6)

References