{ "schema_version": "1.4.0", "id": "GHSA-vqfx-gj96-3w95", "modified": "2023-02-23T16:58:56Z", "published": "2023-02-23T16:58:56Z", "aliases": [ "CVE-2023-22579" ], "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", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "sequelize" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "6.28.1" } ] } ] }, { "package": { "ecosystem": "npm", "name": "@sequelize/core" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "7.0.0-alpha.20" } ] } ] } ], "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" } ], "database_specific": { "cwe_ids": [ "CWE-843" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2023-02-23T16:58:56Z", "nvd_published_at": null } }