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

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-76844— webpack-dev-middleware 路径穿越漏洞

一分钟漏洞结论

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

webpack-dev-middleware 中的 函数在通过测试遍历防护(traversal guard)后,以固定的字符偏移量对请求路径名进行切片,从而将请求解析为本地文件。该防护机制依赖于 对 的应用,它仅匹配作为独立路径段出现的 ;而包含性检查则通过字符串比较 实现,最终文件路径由 构建。 当配置的 末尾不包含斜杠时,例如针对 发起请求 ,其路径名为 。其中,唯一的 位于路径段 内部,因此能够绕过防护检测;然而,基于偏移量的切片操作会在该路径段中间截断,导致向 传入 ,从而将文件解析到 上一级目录中。 要从

CVSS 7.4 · High EPSS 0.37% · P30

可能的 ATT&CK 技术 1 AI

T1564.004 · NTFS File Attributes

影响版本矩阵 4

厂商产品 版本范围状态
webpack webpack-dev-middleware 5.3.4≤ 5.3.4 affected
6.1.2≤ 6.1.3 affected
7.1.0≤ 7.4.5 affected
8.0.0≤ 8.1.1 affected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
webpack-dev-middleware Path Traversal via Offset Slice on a Non-Slash-Terminated publicPath
来源: CVE Program / CVE List V5
Vulnerability Description
webpack-dev-middleware resolves a request to a local file in getFilenameFromUrl by testing the request pathname against a traversal guard and then slicing it at a fixed character offset. The guard, UP_PATH_REGEXP applied to path.normalize(`./${pathname}`), only matches ".." that stands as a whole path segment, while the containment test is the string comparison pathname.startsWith(publicPathPathname) and the file path is built as path.join(outputPath, pathname.slice(publicPathPathname.length)). When the configured publicPath has no trailing slash, a request such as GET /assets../.env against publicPath /assets yields the pathname /assets../.env, whose only dot-dot sits inside the segment "assets.." and so passes the guard, but the offset slice cuts within that segment and hands "../.env" to path.join, resolving one directory above outputPath. Reading a file from that path requires the middleware to be backed by the physical filesystem, which happens when writeToDisk is true or a custom outputFileSystem is supplied, since the default memfs volume holds only build output. Traversal depth is limited to a single directory because a separately delimited dot-dot segment is collapsed during URL parsing before the guard runs. The default publicPath value of "auto" resolves to "/" and is not affected. This is an incomplete fix for CVE-2024-29180: the guard and offset slice were introduced by that fix and are present in every release from 5.3.4, 6.1.2 and 7.1.0 onward.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
webpack webpack-dev-middleware 5.3.4 ~ 5.3.4 -

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

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

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

登录查看更多情报信息。

CVE-2026-76844 厂商安全公告 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-76844

暂无评论


发表评论