{"id":"CVE-2023-25813","published":"2023-02-22T18:14:44Z","modified":"2025-03-10T21:07:11Z","title":"SQL Injection via replacements in sequelize","vendor":"sequelize","product":"sequelize","tier":"tail","description":{"text":"Sequelize is a Node.js ORM tool. In versions prior to 6.19.1 a SQL injection exploit exists related to replacements. Parameters which are passed through replacements are not properly escaped which can lead to arbitrary SQL injection depending on the specific queries in use. The issue has been fixed in Sequelize 6.19.1. Users are advised to upgrade. Users unable to upgrade should not use the `replacements` and the `where` option in the same query.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01444,"percentile":0.73896,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sequelize/sequelize/issues/14519","tags":["x_refsource_MISC"]},{"url":"https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b","tags":["x_refsource_MISC"]},{"url":"https://github.com/sequelize/sequelize/releases/tag/v6.19.1","tags":["x_refsource_MISC"]}],"priority":{"score":26.8,"factors":[{"name":"EPSS percentile","points":14.78},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":3,"skipped":4,"earliest":"2024-07-30","earliestUrl":"https://github.com/White-BAO/CVE-2023-25813","repos":[{"name":"White-BAO/CVE-2023-25813","url":"https://github.com/White-BAO/CVE-2023-25813","stars":1,"created":"2024-07-30"},{"name":"numbbvi/CVE-2023-25813","url":"https://github.com/numbbvi/CVE-2023-25813","stars":0,"created":"2024-11-07"},{"name":"h-gunp/CVE-2023-25813-TEST","url":"https://github.com/h-gunp/CVE-2023-25813-TEST","stars":0,"created":"2025-08-23"}]},"first":{"date":"2024-07-30","source":"PoC-in-GitHub","url":"https://github.com/White-BAO/CVE-2023-25813"},"provenance":"source"},"vendorSlug":"sequelize","affectedVersions":[{"vendor":"sequelize","product":"sequelize","versions":["< 6.19.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-03-10T21:02:23.416082Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"sequelize","vulnerableRanges":["<6.19.1"],"patched":["6.19.1"],"from":["GHSA-wrh9-cjv3-2hpw"],"provenance":"source"}],"summary":{"text":"The SQL injection flaw in Sequelize, a Node.js ORM, affects versions prior to 6.19.1 and lies in how the replacements feature handles parameters, which are not properly escaped.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:08Z"},"euvd":{"id":"EUVD-2023-0814","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-11069","published":"2019-04-10","fixed":"5.3.0","kev":false},{"cve":"CVE-2019-10748","published":"2019-10-28","fixed":"5.8.11","kev":false},{"cve":"CVE-2019-10752","published":"2019-10-17","fixed":"5.15.1","kev":false},{"cve":"CVE-2023-25813","published":"2023-02-22","fixed":"6.19.1","kev":false},{"cve":"CVE-2023-22579","published":"2023-02-16","fixed":"6.28.1","kev":false,"link":{"from":"CVE-2023-25813","to":"CVE-2023-22579","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:sequelize","fromFixed":"6.19.1","toFixed":"6.28.1","daysApart":-6}]}},{"cve":"CVE-2023-22580","published":"2023-02-16","fixed":"6.28.1","kev":false,"link":{"from":"CVE-2023-25813","to":"CVE-2023-22580","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:sequelize","fromFixed":"6.19.1","toFixed":"6.28.1","daysApart":-6}]}},{"cve":"CVE-2023-22578","published":"2023-02-16","fixed":"6.29.0","kev":false}],"package":"npm:sequelize"}}