CVE-2026-73651 TypeORM: migration:generate template-literal code injection
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/typeorm/typeorm/security/advisories/GHSA-2rp8-mm9q-fp49 vendor-advisory
- https://github.com/typeorm/typeorm/commit/41d1c62fe49f99c3ca916d4d986f61ee9f45d519 patch
- https://github.com/typeorm/typeorm/commit/b175f9b8be422edd2a2ac035ba90c3f2ce782dfe patch
- https://github.com/typeorm/typeorm/releases/tag/0.3.31
- https://github.com/typeorm/typeorm/releases/tag/1.1.0
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2515540 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- github.com product
- ENISA EUVD EUVD-2026-58194 third-party-advisory