CVE-2025-60542
MEDIUM 6.5CVSS 3.1TypeORM vulnerable to SQL injection via crafted request to repository.save or repository.update
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.
- Published
- 29 Oct 2025
- Last modified
- 27 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-q2pj-6v73-8rgj
- Sources
- NVDJSONOSV GHSA-q2pj-6v73-8rgjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | typeorm | < 0.3.26 | 0.3.26 |
References
- https://github.com/typeorm/typeorm/pull/11574 · WEB
- https://github.com/typeorm/typeorm/releases/tag/0.3.26 · WEB
- https://github.com/typeorm/typeorm/releases?q=security&expanded=true · 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
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 29 Oct 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Oct 2025)