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.
History

Sat, 15 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-917
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 14 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
First Time appeared Typeorm
Typeorm typeorm
Vendors & Products Typeorm
Typeorm typeorm

Thu, 13 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
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.
Title TypeORM: migration:generate template-literal code injection
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T18:09:07.215Z

Reserved: 2026-08-13T14:04:09.604Z

Link: CVE-2026-73651

cve-icon Vulnrichment

Updated: 2026-08-14T17:53:45.107Z

cve-icon NVD

Status : Received

Published: 2026-08-13T19:17:38.617

Modified: 2026-08-14T19:18:01.140

Link: CVE-2026-73651

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-13T18:11:14Z

Links: CVE-2026-73651 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T02:45:17Z