Vulnerabilities/

TypeORM: migration:generate template-literal code injection

Severity:
Medium

Description

typeorm migration:generate embeds database schema metadata into JS/TS template literals, escaping backticks but not ${...}. An attacker who can write schema metadata (column comments, defaults, view definitions) achieves arbitrary code execution on the host that loads the generated migration.

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 August 13, 2026