Skip to content
OpenAdvisories
Critical · 9.8 CVE-2016-1000225 GHSA-5v9h-q3gj-c32x

SQL Injection via GeoJSON in sequelize

Published Sep 1, 2020 · Updated Nov 8, 2023 · Assigned by GHSA

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.

Affected packages

EcosystemPackageAffectedFixedRecord
npm sequelize >= 3.4.0, < 3.23.6 3.23.6 GHSA-5v9h-q3gj-c32x

References