SQL injection in typeorm - CVE-2025-60542
Published: December 2, 2025
Vulnerability details
The vulnerability allows a remote user to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data passed to repository.save or repository.update. A remote user can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.
Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.
Affected software
Developer Hub
How to mitigate CVE-2025-60542
Developer Hub - addressed in versions 1.7.3, 1.8.1