Vulnerability library
Security checkAugust 13, 2026

TypeORM: migration:generate template-literal code injection

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmtypeorm

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): **>= 1.0.0, < 1.1.0 < 0.3.31**
  • Patched version(s): **1.1.0 0.3.31**

References

Could your website be exposed too?

SmartScanner can check your website for TypeORM: migration:generate template-literal code injection and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 13, 2026