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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 6.19.1 (CNA); fix release not confirmed
- Status: published
- Published: 2023-02-22 · Modified: 2025-03-10
- Aliases: GHSA-wrh9-cjv3-2hpw
- Record: https://cvemate.com/vulnerability/CVE-2023-25813 · JSON: https://cvemate.com/vulnerability/CVE-2023-25813/json

## 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.
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.459%, percentile 74.436%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- Npm sequelize (Npm): \< 6.19.1
- sequelize sequelize: \< 6.19.1
- sequelizejs sequelize: \< 6.19.1

## References

- <https://github.com/sequelize/sequelize/security/advisories/GHSA-wrh9-cjv3-2hpw>
- <https://github.com/sequelize/sequelize/issues/14519>
- <https://github.com/sequelize/sequelize/commit/ccaa3996047fe00048d5993ab2dd43ebadd4f78b>
- <https://github.com/sequelize/sequelize/releases/tag/v6.19.1>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25813>
- <https://github.com/sequelize/sequelize>
- <https://security.snyk.io/vuln/SNYK-JS-SEQUELIZE-2932027>

---

Data as of 2026-12-05T09:57:22.866Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
