{"id":"CVE-2019-10752","aliases":["EUVD-2019-0706","GHSA-m9jw-237r-gvfv","ROOT-APP-NPM-CVE-2019-10752"],"status":"published","title":"SQL Injection in sequelize","description":"Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly when formatting sub paths for JSON queries for MySQL, MariaDB and SQLite.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01462,"percentile":0.73783,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2019-10-17T18:12:43Z","modified":"2026-11-06T07:15:03Z","fixes":[{"ecosystem":"npm","package":"sequelize","fixed_in":["4.44.3","5.15.1"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"sequelize","fixed_in":["4.28.1-aikido.1","4.44.3-aikido.1"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/sequelize","fixed_in":["4.28.1-root.io.1","4.44.3-root.io.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"sequelize","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.44.3"}]}]},{"source":"ghsa","ecosystem":"npm","package":"sequelize","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.15.1"}]}]},{"source":"osv","ecosystem":"npm","package":"sequelize","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.44.3"}]}]},{"source":"osv","ecosystem":"npm","package":"sequelize","ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.15.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"sequelize","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.28.1-aikido.1"},{"fixed":"4.44.3-aikido.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/sequelize","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.28.1-root.io.1"},{"fixed":"4.44.3-root.io.1"}]}]}],"products":[{"vendor":"sequelize","product":"sequelize"},{"vendor":"sequelizejs","product":"sequelize"}],"references":[{"url":"https://github.com/sequelize/sequelize/commit/9bd0bc1%2C","tags":["x_refsource_MISC","x_transferred","fix"]},{"url":"https://github.com/sequelize/sequelize/commit/9bd0bc111b6f502223edf7e902680f7cc2ed541e","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://snyk.io/vuln/SNYK-JS-SEQUELIZE-459751%2C","tags":["x_refsource_CONFIRM","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10752","tags":["advisory"]},{"url":"https://github.com/sequelize/sequelize/commit/9bd0bc1,","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-JS-SEQUELIZE-459751,","tags":["web"]},{"url":"https://github.com/sequelize/sequelize/pull/11329","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-JS-SEQUELIZE-459751","tags":["Exploit","Third Party Advisory","evidence","web"]},{"url":"https://www.npmjs.com/advisories/1146","tags":["web"]},{"url":"https://github.com/advisories/GHSA-m9jw-237r-gvfv"}],"sources":{"cve":[{"id":"CVE-2019-10752","description":"Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly when formatting sub paths for JSON queries for MySQL, MariaDB and SQLite.","status":"published","published":"2019-10-17T18:12:43Z","modified":"2024-08-04T22:32:01.546Z","updated_at":"2026-11-02T14:20:19.399352Z"}],"euvd":[{"id":"EUVD-2019-0706","description":"Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly when formatting sub paths for JSON queries for MySQL, MariaDB and SQLite.","status":"published","published":"2019-10-17T18:12:43Z","modified":"2024-08-04T22:32:01Z","updated_at":"2026-11-03T02:40:51.633398Z"}],"ghsa":[{"id":"GHSA-m9jw-237r-gvfv","title":"SQL Injection in sequelize","description":"Affected versions of `sequelize` are vulnerable to SQL Injection. The function `sequelize.json()` incorrectly formatted sub paths for JSON queries, which allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query.  Exploitation example:  \n\n```js\nreturn User.findAll({\n  where: this.sequelize.json(\"data.id')) AS DECIMAL) = 1 DELETE YOLO INJECTIONS; -- \", 1)\n});\n```\n\n\n## Recommendation\n\nIf you are using `sequelize` 5.x, upgrade to version 5.15.1 or later.\nIf you are using `sequelize` 4.x, upgrade to version 4.44.3 or later.","status":"published","published":"2019-10-25T19:43:16Z","modified":"2023-09-11T22:39:40Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:37:04.447845Z"}],"nvd":[{"id":"CVE-2019-10752","description":"Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly when formatting sub paths for JSON queries for MySQL, MariaDB and SQLite.","status":"published","published":"2019-10-17T19:15:10.42Z","modified":"2026-06-17T02:11:36.227Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:05:31.860711Z"}],"osv":[{"id":"CVE-2019-10752","description":"Sequelize, all versions prior to version 4.44.3 and 5.15.1, is vulnerable to SQL Injection due to sequelize.json() helper function not escaping values properly when formatting sub paths for JSON queries for MySQL, MariaDB and SQLite.","status":"published","published":"2019-10-17T19:15:10.42Z","modified":"2026-10-20T10:50:37.923331225Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:10.383287Z"},{"id":"GHSA-m9jw-237r-gvfv","title":"SQL Injection in sequelize","description":"Affected versions of `sequelize` are vulnerable to SQL Injection. The function `sequelize.json()` incorrectly formatted sub paths for JSON queries, which allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query.  Exploitation example:  \n\n```js\nreturn User.findAll({\n  where: this.sequelize.json(\"data.id')) AS DECIMAL) = 1 DELETE YOLO INJECTIONS; -- \", 1)\n});\n```\n\n\n## Recommendation\n\nIf you are using `sequelize` 5.x, upgrade to version 5.15.1 or later.\nIf you are using `sequelize` 4.x, upgrade to version 4.44.3 or later.","status":"published","published":"2019-10-25T19:43:16Z","modified":"2024-11-13T01:11:52.332934Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:51.811331Z"},{"id":"ROOT-APP-NPM-CVE-2019-10752","title":"CVE-2019-10752 in sequelize - Patched by Root","description":"Root has patched CVE-2019-10752 in the sequelize package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-11-06T06:27:25Z","modified":"2026-11-06T07:15:03.176173445Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-06T07:35:25.48647Z"}]}}
