Skip to content

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

MediumCVSS 5.7 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
MySQLMariaDBRed Hat

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.

Upgrade path

5 packages: 1 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat/ansible-automation-platform/automation-portal(Red Hat ansible_portal 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat ansible_portal 2) All versions No fix listed No fix yet
redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) All versions No fix listed No fix yet
npm typeorm(npm) < 0.3.31; >= 1.0.0, < 1.1.0 0.3.31, 1.1.0 Fixed
typeorm = < 0.3.31; = >= 1.0.0, < 1.1.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
typeorm = < 0.3.31 No fix listed
typeorm = >= 1.0.0, < 1.1.0 No fix listed
redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) All versions No fix listed
redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) All versions No fix listed
redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat:ansible_portal:2) All versions No fix listed
npm typeorm(npm) < 0.3.31 0.3.31
npm typeorm(npm) >= 1.0.0, < 1.1.0 1.1.0

References