GitHub Advisoryadvisory · npm

GHSA-5v9h-q3gj-c32x SQL Injection via GeoJSON in sequelize

CRITICAL Published 2020-09-01 Modified 2021-09-23 Official page ↗
Aliases
CVE-2016-1000225
Ecosystem
npm
Packages
sequelize
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Reviewed
2020-08-31

Affected packages

• npm sequelize: >= 3.4.0, < 3.23.6 → fixed in 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.

Related

Alias · not in database (1)

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References