{"id":"GHSA-vqfx-gj96-3w95","summary":"Unsafe fall-through in getWhereConditions","details":"### Impact\n\nProviding an invalid value to the `where` option of a query caused Sequelize to ignore that option instead of throwing an error. \n\nA finder call like the following did not throw an error:\n\n```ts\nUser.findAll({\n  where: new Date(),\n});\n```\n\nAs this option is typically used with plain javascript objects, be aware that this only happens at the top level of this option.\n\n### Patches\n\nThis issue has been patched in [`sequelize@6.28.1`](https://github.com/sequelize/sequelize/pull/15699) & [`@sequelize/core@7.0.0.alpha-20`](https://github.com/sequelize/sequelize/pull/15375)\n\n### References\n\nA discussion thread about this issue is open at https://github.com/sequelize/sequelize/discussions/15698\n\nCVE:  CVE-2023-22579\nSnyk: https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-3324090","aliases":["CVE-2023-22579"],"modified":"2023-11-08T04:11:37.032048Z","published":"2023-02-23T16:58:56Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-843"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2023-02-23T16:58:56Z"},"references":[{"type":"WEB","url":"https://github.com/sequelize/sequelize/security/advisories/GHSA-vqfx-gj96-3w95"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22579"},{"type":"WEB","url":"https://github.com/sequelize/sequelize/pull/15375"},{"type":"WEB","url":"https://github.com/sequelize/sequelize/pull/15699"},{"type":"WEB","url":"https://csirt.divd.nl/CVE-2023-22579"},{"type":"WEB","url":"https://csirt.divd.nl/DIVD-2022-00020"},{"type":"PACKAGE","url":"https://github.com/sequelize/sequelize"},{"type":"WEB","url":"https://github.com/sequelize/sequelize/discussions/15698"},{"type":"WEB","url":"https://github.com/sequelize/sequelize/releases/tag/v6.28.1"},{"type":"WEB","url":"https://github.com/sequelize/sequelize/releases/tag/v7.0.0-alpha.20"}],"affected":[{"package":{"name":"sequelize","ecosystem":"npm","purl":"pkg:npm/sequelize"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.28.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-vqfx-gj96-3w95/GHSA-vqfx-gj96-3w95.json"}},{"package":{"name":"@sequelize/core","ecosystem":"npm","purl":"pkg:npm/%40sequelize/core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.0.0-alpha.20"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-vqfx-gj96-3w95/GHSA-vqfx-gj96-3w95.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}