{"id":"GHSA-2v7q-2xqx-f4q5","summary":"Potential SQL Injection in sequelize","details":"Affected versions of `sequelize` are vulnerable to SQL Injection when user input is passed into `findOne` or into a statement such as `where: \"user input\"`.\n\n\n\n## Recommendation\n\nUpdate to version 3.0.0 or later.\n\nVersion 3.0.0 will introduce a number of breaking changes.\nThankfully, the project authors have provided a 2.x -\u003e 3.x [upgrade guide](https://github.com/sequelize/sequelize/wiki/Upgrade-from-2.0-to-3.0) to ease this transition.\n\nIf upgrading is not an option, it is also possible to mitigate this by ensuring that all uses of `where: \"input\"` and `findOne(\"input\")` are properly sanitized, such as by the use of a wrapper function.","aliases":["CVE-2016-10553"],"modified":"2023-11-08T03:58:12.201688Z","published":"2019-02-18T23:54:32Z","database_specific":{"cwe_ids":["CWE-89"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-06-16T20:53:00Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10553"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2v7q-2xqx-f4q5"},{"type":"WEB","url":"https://github.com/sequelize/sequelize/blob/master/changelog.md#300"},{"type":"WEB","url":"https://www.npmjs.com/advisories/109"}],"affected":[{"package":{"name":"sequelize","ecosystem":"npm","purl":"pkg:npm/sequelize"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.1.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/02/GHSA-2v7q-2xqx-f4q5/GHSA-2v7q-2xqx-f4q5.json"}}],"schema_version":"1.9.0"}