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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-112712— fastify/middie 中间件路径作用域绕过漏洞

一分钟漏洞结论

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

是 Fastify 的类 Express 中间件引擎。在 9.0.0 至 9.3.5 版本中, 函数将路径作用域中间件的挂载路径与插件作用域前缀拼接时,其结果可能与 Fastify 路由器实际处理的路径不一致。这种情况最常见于作用域前缀以斜杠结尾时,同时也可能出现在使用数组形式的挂载路径,或挂载路径未以斜杠开头的情形中。当这两条路径不一致时,中间件会被静默跳过,而路由处理器仍会正常执行,导致认证、授权或速率限制等路径作用域中间件可通过单次未认证请求被绕过。该问题已在 9.3.6 版本中修复,建议用户升级至 9.3.

CVSS 9.1 · Critical
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
@fastify/middie vulnerable to path-scoped middleware bypass via scope prefix mismatch
来源: CVE Program / CVE List V5
Vulnerability Description
@fastify/middie is the Express-style middleware engine for Fastify. In versions from 9.0.0 through 9.3.5, the use() function joined a path-scoped middleware's mount path to the plugin scope prefix in a way that could diverge from the path Fastify's router serves, most often when the scope prefix ended in a slash, and also for array mount paths and for mount paths written without a leading slash. When the two paths disagreed, the middleware was silently skipped while the route handler still ran, so path-scoped middleware such as authentication, authorization, or rate limiting could be bypassed by a single unauthenticated request. The issue is fixed in @fastify/middie 9.3.6, and users should upgrade to 9.3.6 or later. As a workaround, enforce authorization in a Fastify hook such as preHandler that runs after the router has resolved the request.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
解释冲突
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
@fastify/middie @fastify/middie 9.0.0 ~ 9.3.6 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2026-112712

暂无评论


发表评论