
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2016-1000225 affects Sequelize versions >=3.4.0 and <3.23.6. The vulnerability allows SQL injection attacks via GeoJSON documents in Models that have fields with the GEOMETRY DataType. This occurs because single quotes in document values are not properly escaped when using ST_GeomFromGeoJSON for PostgreSQL and GeomFromText for MySQL (GitHub Advisory, Snyk).
The vulnerability exists because the GEOMETRY and GEOGRAPHY data types in Sequelize do not properly escape single quotes when processing GeoJSON documents. This affects both PostgreSQL (using ST_GeomFromGeoJSON function) and MySQL (using GeomFromText function) implementations. The issue allows attackers to inject malicious SQL code through crafted GeoJSON values containing single quotes (GitHub PR, GitHub Issue).
A successful exploitation of this vulnerability could allow attackers to perform SQL injection attacks, potentially leading to unauthorized data access, data manipulation, or execution of arbitrary database commands. The vulnerability has a CVSS v3.1 base score of 9.8 (Critical), indicating high impact on confidentiality, integrity and availability (GitHub Advisory, Snyk).
The vulnerability is easily exploitable by sending GeoJSON documents containing single quotes in their values. This affects applications using Sequelize's GEOMETRY or GEOGRAPHY data types. The vulnerability requires no special privileges or user interaction to exploit (Snyk).
The recommended mitigation is to upgrade Sequelize to version 3.23.6 or later, which properly escapes single quotes in GeoJSON documents. The fix was implemented by modifying the $stringify function to use proper escaping for both GEOMETRY and GEOGRAPHY types (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."