文件

8.3 KiB

title, system_id, category, advisory_mode, published_date, updated_date, severity, exploit_status, source_confidence, verification_status, verification_mode, artifact_mode, last_run_id, target_types, allow_public_validation, authorization_prerequisite, minimal_validation, aliases, affected_versions, fixed_versions, entity_refs, secure_code_topics, primary_source
title system_id category advisory_mode published_date updated_date severity exploit_status source_confidence verification_status verification_mode artifact_mode last_run_id target_types allow_public_validation authorization_prerequisite minimal_validation aliases affected_versions fixed_versions entity_refs secure_code_topics primary_source
Authorization Bypass in Next.js Middleware nextjs frameworks core 2025-03-21T15:20:12Z 2026-03-04T15:06:29.993197Z low unknown official verified-real real local-fixture nextjs-nextjs--CVE-2025-29927-20260318035717
lab-local
lab-public
authorized-third-party
yes, with ownership or explicit authorization asset ownership proof or explicit written authorization read-only probe, controlled payload, reversible test
CVE-2025-29927
GHSA-f82v-jwr5-mffw
introduced=13.0.0, fixed<13.5.9
introduced=14.0.0, fixed<14.2.25
introduced=15.0.0, fixed<15.2.3
introduced=12.0.0, fixed<12.3.5
13.5.9
14.2.25
15.2.3
12.3.5
nextjs:system:root-system
nextjs--project--next:project:affected-component
authz-server-side-recheck
proxy-trust-boundary
token-cookie-storage
https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw

Authorization Bypass in Next.js Middleware

本地实证状态

  • 实证状态: verified-real
  • 实证方式: real
  • Artifact 模式: local-fixture
  • 最近运行: nextjs-nextjs--CVE-2025-29927-20260318035717
  • 浏览器证据: missing
  • Run Bundle: /Users/x/websafe/06-case-studies/generated-runs/nextjs-nextjs--CVE-2025-29927-20260318035717

事件层

  • Canonical ID: nextjs--CVE-2025-29927
  • 系统: nextjs
  • 严重度: low
  • 来源置信度: official
  • 官方主源: https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw
  • 影响版本: introduced=13.0.0, fixed<13.5.9, introduced=14.0.0, fixed<14.2.25, introduced=15.0.0, fixed<15.2.3, introduced=12.0.0, fixed<12.3.5
  • 修复版本: 13.5.9, 14.2.25, 15.2.3, 12.3.5

对象与版本映射

  • Advisory Scope: package
  • 影响对象: next
  • Entity Refs: nextjs, nextjs--project--next
  • 版本置信度: high
  • 版本缺口: -
  • 版本证据源: https://github.com/vercel/next.js/security/advisories/GHSA-f82v-jwr5-mffw, https://nvd.nist.gov/vuln/detail/CVE-2025-29927, https://github.com/vercel/next.js/commit/52a078da3884efe6501613c7834a3d02a91676d2, https://github.com/vercel/next.js/commit/5fd3ae8f8542677c6294f32d18022731eab6fe48, https://github.com/vercel/next.js

受控验证流程

  • Workflow ID: nextjs--CVE-2025-29927--workflow
  • 漏洞家族: authz-bypass
  • 入口面: privileged-route-or-object-reference
  • 需要角色: cross-tenant-or-low-privileged-user
  • 触发向量: 对 authz-bypass 家族入口投递最小化、可审计、可回滚的受控输入,比较修复前后差异。
  • 请求/页面入口: /admin/*, /api/private/*, /tenant/*
  • 输入形态: 使用低权限身份访问高权限对象或跨租户资源。
  • 预期不安全行为: 低权限身份可访问本不应可见的数据或操作。

其他来源

证据点与补丁验证

服务端证据点

  • 应用日志中的命中路径、鉴权决策和异常栈
  • 反向代理或边界层日志中的请求头、来源 IP 与路由决策

浏览器证据点

  • 基线截图与攻击后截图的 DOM/视觉差异
  • console、network 与 response metadata 中的异常信号

数据库/文件系统证据点

  • 数据库中新增/越权读取的测试数据
  • 文件系统中新增上传样本、缓存条目或越权读取痕迹

检测信号

  • WAF / reverse proxy 异常日志、访问日志和告警
  • 应用审计日志中的权限错误、重定向异常、模板渲染或上传落盘事件

补丁验证步骤

  • 确认目标版本从 introduced=13.0.0, fixed<13.5.9, introduced=14.0.0, fixed<14.2.25, introduced=15.0.0, fixed<15.2.3 升级或回移到 13.5.9
  • 保留同一组受控输入,在修复前后分别执行并比对响应、日志与浏览器证据。
  • 确认修复后仅保留预期业务行为,不再触发越权、回显、异常渲染或错误请求。
  • 补充 authz-bypass 族自动化回归,避免同类路径在插件、主题或代理链中回归。

实验安全备注

  • 只使用回环地址、哨兵目标、无害样本或可回滚测试数据。
  • 禁止造成持久破坏、越权下载真实数据或不可回滚 side effect。
  • 如需浏览器证据,保留 baseline / proof 两份快照以及 console / network 记录。

实验层

  • 仅用于自有资产、测试环境或已明确授权目标。
  • 允许公网可达目标,但必须满足资产归属或明确授权前提。
  • 最小化验证方式: 最小化验证、只读探测、可审计回显、受控注入。
  • 若该案例涉及插件、模块或扩展,应同时检查供应链与升级策略。
  • 禁止场景: 无归属证明或无明确授权的公网目标;知名公共网站或与测试无关的第三方资产;会造成持久破坏、数据越权下载或不可回滚影响的动作

修复示例