Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-10556

sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server into usable data for NodeJS In Postgres, SQLite, and Microsoft SQL Server there is an issue where arrays are treated as strings and improperly escaped. This causes potential SQL injection in sequelize 3.19.3 and earlier, where a malicious user could put `["test", "'); DELETE TestTable WHERE Id = 1 --')"]` inside of ``` database.query('SELECT * FROM TestTable WHERE Name IN (:names)', { replacements: { names: directCopyOfUserInput } }); ``` and cause the SQL statement to become `SELECT Id FROM Table WHERE Name IN ('test', '\'); DELETE TestTable WHERE Id = 1 --')`. In Postgres, MSSQL, and SQLite, the backslash has no special meaning. This causes the the statement to delete whichever Id has a value of 1 in the TestTable table.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-10556
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:38 UTC · Revision 1

Source evidence

CVE-2016-10556

core-osv · Original source

Published 29 May 2018, 20:29 UTC

sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server into usable data for NodeJS In Postgres, SQLite, and Microsoft SQL Server there is an issue where arrays are treated as strings and improperly escaped. This causes potential SQL injection in sequelize 3.19.3 and earlier, where a malicious user could put `["test", "'); DELETE TestTable WHERE Id = 1 --')"]` inside of ``` database.query('SELECT * FROM TestTable WHERE Name IN (:names)', { replacements: { names: directCopyOfUserInput } }); ``` and cause the SQL statement to become `SELECT Id FROM Table WHERE Name IN ('test', '\'); DELETE TestTable WHERE Id = 1 --')`. In Postgres, MSSQL, and SQLite, the backslash has no special meaning. This causes the the statement to delete whichever Id has a value of 1 in the TestTable table.

osv:CVE-2016-10556
Complete source record
{
  "id": "50efc8356b2cf0bbaa2acd111b9dae48e8747de25526fa8a3f26c138f4ee4cdb",
  "url": "https://osv.dev/vulnerability/CVE-2016-10556",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-10556",
    "summary": "sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server into usable data for NodeJS In Postgres, SQLite, and Microsoft SQL Server there is an issue where arrays are treated as strings and improperly escaped. This causes potential SQL injection in sequelize 3.19.3 and earlier, where a malicious user could put `[\"test\", \"'); DELETE TestTable WHERE Id = 1 --')\"]` inside of ``` database.query('SELECT * FROM TestTable WHERE Name IN (:names)', { replacements: { names: directCopyOfUserInput } }); ``` and cause the SQL statement to become `SELECT Id FROM Table WHERE Name IN ('test', '\\'); DELETE TestTable WHERE Id = 1 --')`. In Postgres, MSSQL, and SQLite, the backslash has no special meaning. This causes the the statement to delete whichever Id has a value of 1 in the TestTable table.",
    "evidence": "osv:CVE-2016-10556",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-10556",
      "aliases": [
        "CVE-2016-10556",
        "GHSA-9c2p-jw8p-f84v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sequelize/sequelize",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d2fc3923e653d726f45b844286276661118a443e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:sequelizejs:sequelize:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.19.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.19.3",
            "v3.19.2",
            "v3.19.1",
            "v3.19.0",
            "v3.18.0",
            "v3.17.3",
            "v3.17.2",
            "v3.17.1",
            "v3.17.0",
            "v3.16.0",
            "v3.15.1",
            "v3.15.0",
            "v3.14.2",
            "v3.14.0",
            "v3.13.0",
            "v3.12.2",
            "3.12.1",
            "v3.12.0",
            "v3.10.0",
            "v3.9.0",
            "v3.8.0",
            "v3.7.1",
            "v3.7.0",
            "v3.6.0",
            "v3.5.1",
            "v3.5.0",
            "v3.4.1",
            "v3.4.0",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.2.0",
            "v3.1.1",
            "v3.1.0",
            "v3.0.1",
            "v3.0.0",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.6",
            "v2.0.5",
            "v2.0.4",
            "v2.0.3",
            "v2.0.0",
            "v2.0.1",
            "v2.0.2",
            "v2.0.0-rc8",
            "v2.0.0-rc7",
            "v2.0.0-rc6",
            "v2.0.0-rc5",
            "v2.0.0-rc4",
            "v2.0.0-rc3",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v2.0.0-dev13",
            "v2.0.0-dev12",
            "v2.0.0-dev11",
            "v2.0.0-dev10",
            "v2.0.0-dev9",
            "v2.0.0-dev8",
            "v2.0.0-dev7",
            "v2.0.0-dev6",
            "v2.0.0-dev5",
            "v2.0.0-dev4",
            "v2.0.0-dev3",
            "v2.0.0-dev2",
            "v2.0.0-dev1",
            "v2.0.0-beta.8",
            "v2.0.0-beta.7",
            "v2.0.0-beta.6",
            "v2.0.0-beta.5",
            "v2.0.0-beta.4",
            "v2.0.0-beta.2",
            "v2.0.0-beta.1",
            "v2.0.0-beta.0",
            "v2.0.0-alpha3",
            "v2.0.0-alpha2",
            "v1.7.0-alpha2",
            "v1.7.0-alpha1",
            "v1.6.0",
            "v1.6.0-beta4",
            "v1.6.0-beta-3",
            "v1.6.0-beta-2",
            "v1.5.0-beta-2",
            "v1.5.0-beta",
            "v1.5.0-alpha",
            "v1.4.1",
            "v1.4.0",
            "v1.3.7",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.4",
            "v1.1.3",
            "v1.1.2",
            "1.1.1",
            "1.1.0",
            "1.0.2",
            "1.0.1",
            "0.4.3",
            "0.4.2",
            "0.4.1",
            "0.4.0",
            "0.3.0",
            "0.2.6",
            "0.2.5",
            "0.2.4",
            "0.2.3",
            "0.2.1",
            "0.2.0",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10556.json"
          }
        }
      ],
      "modified": "2026-10-20T10:47:24.839717362Z",
      "provider": "osv",
      "references": [
        "https://nodesecurity.io/advisories/102",
        "https://github.com/sequelize/sequelize/issues/5671"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2016-10556",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 379367,
  "published_at": "2018-05-29T20:29:00.75+00:00"
}