目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-76848— TypeORM 1.1.0 SQL注入漏洞

一分钟漏洞结论

影响对象
typeorm typeorm
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

TypeORM 的 方法接受一个字符串数组,并将其直接存储到表达式映射中,而未进行任何验证。对于基于 PostgreSQL 的驱动程序, 中的 函数会将该数组拼接,并将其插值生成到 SQL 语句中,形式为 ,但在此过程中没有任何转义、引号包裹、标识符验证或白名单机制,同时也未通过 或驱动程序的转义辅助函数进行处理。由于插值点是一个包含 SQL 表达式列表的括号结构(而非仅限标识符的位置),传入的数组元素可以包含任意表达式,包括相关子查询。如果应用程序将客户端可控的值传递给 (例如,允许调用者选择去重列),则攻击者可

CVSS 7.5 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-76848 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
TypeORM 0.2.21 through 1.1.0 SQL Injection via SelectQueryBuilder.distinctOn
来源: CVE Program / CVE List V5
Vulnerability Description
TypeORM's SelectQueryBuilder.distinctOn accepts an array of strings and stores it on the expression map without validation. For PostgreSQL-family drivers, createSelectDistinctExpression in src/query-builder/SelectQueryBuilder.ts joins that array and interpolates the result into the generated statement as SELECT DISTINCT ON (values), with no escaping, quoting, identifier validation or allowlist, and without routing the values through replacePropertyNames or the driver's escape helper. Because the interpolation point is a parenthesized SQL expression list rather than an identifier-only position, a supplied element may carry arbitrary expressions, including correlated subqueries. An application that forwards a client-controlled value into distinctOn, for instance to let a caller choose a deduplication column, allows that client to read data anywhere the application's database role can reach through boolean or time-based inference, independently of the entity being queried. validateOrderByCondition, the allowlist check guarding the orderBy family in the same class, is not applied to this path.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
typeorm typeorm 0.2.21 ~ 1.1.0 -

二、漏洞 CVE-2026-76848 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级
Qwen3.6-35B-A3B · 6960 chars
Pro+ 专属包含:
漏洞复现靶场录像(真实沙箱构建 + 触发,独家)
漏洞原理深度分析
触发条件与影响面
完整可执行 POC 代码
利用链与缓解建议
POC 打包下载
每月 100+ 条 AI 生成额度

三、漏洞 CVE-2026-76848 的情报信息

登录查看更多情报信息。

CVE-2026-76848 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-76848

暂无评论


发表评论