CVE-2026-73651
Published:August 13, 2026
Updated:August 31, 2026
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
https://github.com/typeorm/typeorm.git (GITHUB):
Affected version(s) =1.0.0 <1.1.0Fix Suggestion:
Update to version 1.1.0https://github.com/typeorm/typeorm.git (GITHUB):
Affected version(s) >=0.0.2 <0.3.31Fix Suggestion:
Update to version 0.3.31typeorm (NPM):
Affected version(s) >=1.0.0 <1.1.0Fix Suggestion:
Update to version 1.1.0typeorm (NPM):
Affected version(s) >=0.0.1 <0.3.31Fix Suggestion:
Update to version 0.3.31Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
HIGH
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
0.23