CVE-2025-60542
SQL Injection vulnerability in TypeORM before 0.3.26 via crafted …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- nvd.nist.gov/vuln/detail/CVE-2025-60542
- github.com/typeorm/typeorm/pull/11574
- github.com/typeorm/typeorm/releases/tag/0.3.26
- github.com/typeorm/typeorm/releases?q=security&expanded=true
- medium.com/@alizada.cavad/cve-2025-60542-typeorm-mysql-sqli-0-3-25-a1b32bc60453
- github.com/typeorm/typeorm/commit/d57fe3bd8578b0b8f9847647fd046bccf825a7ef
- github.com/mysqljs/sqlstring/blob/cd528556b4b6bcf300c3db515026935dedf7cfa1/lib/SqlString.j
- github.com/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/base/co
- nvd.nist.gov/vuln/detail/CVE-2025-60542
- cve.org/CVERecord?id=CVE-2025-60542
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.