Medium [CVE-2026-73651] Arbitrary code execution via template literal code injection
This medium-severity Red Hat Linux advisory covers CVE-2026-73651 affecting Red Hat Developer Hub, Self-service automation portal 2.
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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.
A flaw was found in TypeORM. This process incorrectly escapes backticks but fails to escape interpolation, creating a vulnerability.
Red Hat severity: Moderate — CVSS 5.7 (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N). Weakness: CWE-917.
Affected Red Hat products: Red Hat Developer Hub; Self-service automation portal 2. Red Hat does not currently list a fixing RHSA for this CVE.
- < 0.3.31
- < 1.1.0
Official advisory · high-confidence parse· fetched 2 hours ago·verify at source
- 0.3.31
- 1.1.0
Official advisory · high-confidence parse· fetched 2 hours ago·verify at source
Mitigation
Upgrade to a fixed release: 0.3.31, 1.1.0. That is the remediation for this advisory.
The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.
Official advisory · high-confidence parse· fetched 2 hours ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.