# CVE-2025-60542: TypeORM vulnerable to SQL injection via crafted request to repository.save or repository.update

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- 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): 0.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-10-29T00:00:00.000Z
- Modified: 2026-10-27T12:10:00.343Z
- Also known as: GHSA-q2pj-6v73-8rgj
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

SQL Injection vulnerability in TypeORM before 0.3.26 via crafted request to repository.save or repository.update due to the sqlstring call using stringifyObjects default to false.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- typeorm (npm): before 0.3.26

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:L/SI:H/SA:L/E:P`

## References

- <https://github.com/typeorm/typeorm/releases?q=security&expanded=true> (web)
- <https://github.com/typeorm/typeorm/pull/11574> (web)
- <https://github.com/typeorm/typeorm/releases/tag/0.3.26> (web)
- <https://medium.com/@alizada.cavad/cve-2025-60542-typeorm-mysql-sqli-0-3-25-a1b32bc60453> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-60542> (advisory)
- <https://github.com/typeorm/typeorm/commit/d57fe3bd8578b0b8f9847647fd046bccf825a7ef> (web)
- <https://github.com/mysqljs/sqlstring/blob/cd528556b4b6bcf300c3db515026935dedf7cfa1/lib/SqlString.js#L54> (web)
- <https://github.com/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/base/connection.js#L524> (web)
- <https://github.com/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/connection_config.js#L124> (web)
- <https://github.com/typeorm/typeorm/blob/0.3.25/src/driver/mysql/MysqlConnectionOptions.ts> (web)
- <http://github.com/typeorm/typeorm> (package)

## Sources

- CVE List: [CVE-2025-60542](https://www.cve.org/CVERecord?id=CVE-2025-60542), CVE Terms of Use, modified 2025-10-30
- GitHub Advisory Database: [GHSA-q2pj-6v73-8rgj](https://github.com/advisories/GHSA-q2pj-6v73-8rgj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-60542](https://nvd.nist.gov/vuln/detail/CVE-2025-60542), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2025-60542 · Whole record: https://cve.day/CVE-2025-60542.json · Rebuilt by cve.day 2026-11-25T22:59:06.998Z
