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

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-87859— Morgan 日志注入漏洞

一分钟漏洞结论

影响对象
morgan morgan
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Morgan 是 Node.js 的 HTTP 请求日志记录中间件。在 1.12.1 之前的版本中,其 函数未转义双引号字符,而双引号是 Morgan 输出的 Apache 组合日志格式中用于界定带引号字段的分隔符。 若一个未认证的远程攻击者能够控制写入带引号字段的值(例如 User-Agent 或 Referer 请求头),则可以在其中插入一个双引号,从而提前结束该字段。这样,按照字段位置解析日志的日志消费者会将攻击者提供的文本误读为下一个字段。对于内置日志格式,这会导致记录的值与请求中实际发送的值不一致;对于自

CVSS 5.3 · Medium EPSS 0.39% · P33

可能的 ATT&CK 技术 1 AI

T1070.001

影响版本矩阵 2

厂商产品 版本范围状态
morgan morgan < 1.12.1 affected
1.12.1 unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
morgan vulnerable to Log Injection via unescaped double quote in quoted log fields
来源: CVE Program / CVE List V5
Vulnerability Description
morgan is an HTTP request logger middleware for Node.js. In versions before 1.12.1, its escapeLogField() function does not escape the double quote character, which delimits the quoted fields of the Apache combined log format that morgan emits. An unauthenticated remote attacker who controls a value written to a quoted field, such as the User-Agent or Referer header, can include a double quote to close that field early, so a log consumer that parses the log by field position reads attacker-supplied text as the following field. In the built-in formats this makes the recorded value differ from the value that was sent, and in custom formats that quote an attacker-controlled token before a server-controlled one it can forge values such as the response status. No newline is injected, so record separation stays intact. The issue is fixed in morgan 1.12.1, which escapes the double quote. Users should upgrade to morgan 1.12.1 or later.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
日志输出的转义处理不恰当
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
morgan morgan 0 ~ 1.12.1 -

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

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

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

IV. Related Vulnerabilities

V. Comments for CVE-2026-87859

暂无评论


发表评论