# CVE-2023-25813: SQL Injection via replacements in sequelize

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.44%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-02-22T18:14:44.579Z
- Modified: 2026-09-10T03:49:52.098Z
- Also known as: GHSA-wrh9-cjv3-2hpw
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sequelize sequelize: < 6.19.1
- sequelize (npm): before 6.19.1
- sequelizejs sequelize: before 6.19.1

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw> (exploit, vendor-advisory, web)
- <https://github.com/sequelize/sequelize/issues/14519> (exploit, issue-tracking, web)
- <https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b> (patch, web)
- <https://github.com/sequelize/sequelize/releases/tag/v6.19.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25813> (advisory)
- <https://github.com/sequelize/sequelize> (package)
- <https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-2932027> (web)

## Sources

- CVE List: [CVE-2023-25813](https://www.cve.org/CVERecord?id=CVE-2023-25813), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-wrh9-cjv3-2hpw](https://github.com/advisories/GHSA-wrh9-cjv3-2hpw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-25813](https://nvd.nist.gov/vuln/detail/CVE-2023-25813), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25813 · Whole record: https://cve.day/CVE-2023-25813.json · Rebuilt by cve.day 2026-11-25T22:58:22.106Z
