Vulnerability · Published Aug 13, 2026 · Assigned by GitHub_M

CVE-2026-73651TypeORM: migration:generate template-literal code injection

Medium 5.7

In plain English

A medium-severity code injection in typeorm from typeorm. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.7Medium
Exploit odds (30 days)0.4%top 66.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

TypeORM is a TypeScript and JavaScript ORM for Node.js that supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and other databases. Prior to versions 0.3.31 and 1.1.0, typeorm migration:generate embeds database schema metadata into JavaScript or TypeScript template literals in src/commands/MigrationGenerateCommand.ts, escaping backticks but not ${...} interpolation. An attacker with database schema write access can place a payload in column COMMENT or DEFAULT metadata, or another introspected schema string, and the JavaScript engine evaluates the payload when the generated migration is loaded through migration:run, import, or require. This issue is fixed in versions 0.3.31 and 1.1.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmtypeorm0.3.31GHSA-2rp8-mm9q-fp49
npmtypeorm1.1.0GHSA-2rp8-mm9q-fp49

Affected products (as reported)

VendorProductVersions
typeorm typeorm < 0.3.31>= 1.0.0, < 1.1.0

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

References