Vulnerabilities/

TypeORM: SQL Injection in UpdateQueryBuilder/SoftDeleteQueryBuilder orderBy (MySQL/MariaDB)

Severity:
Medium

Description

Blind SQL injection vulnerability in UpdateQueryBuilder and SoftDeleteQueryBuilder affecting MySQL and MariaDB users.

UpdateQueryBuilder and SoftDeleteQueryBuilder (including their addOrderBy variants) do not validate the order parameter against an allowlist of permitted values (ASC/DESC).

Recommendation

Update the typeorm package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
typeorm
Anything's wrong? Let us know Last updated on June 19, 2026