Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
typeorm typeorm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

TypeORM 是适用于 Node.js 的 TypeScript 和 JavaScript ORM,支持 PostgreSQL、MySQL、MariaDB、SQLite、SQL Server、Oracle 以及其他数据库。 在 0.3.31 和 1.1.0 版本之前, 命令会将数据库模式元数据嵌入到 文件中的 JavaScript 或 TypeScript 模板字面量(template literals)中。该实现虽然转义了反引号(backticks),但未对 插值进行转义。 拥有数据库模式写入权限的攻击者可以在

CVSS 5.7 · Medium EPSS 0.39% · P31

Affected Version Matrix 2

VendorProduct Version RangeStatus
typeorm typeorm < 0.3.31 affected
>= 1.0.0, < 1.1.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-73651

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
TypeORM: migration:generate template-literal code injection
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
typeorm typeorm < 0.3.31 -

II. Public POCs for CVE-2026-73651

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-73651

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-73651 (2)

Vendor Advisories for CVE-2026-73651 (1)

Vendor Pages for CVE-2026-73651 (1)

Other References for CVE-2026-73651 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-73651

No comments yet


Leave a comment