<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Web前端 on 办公AI智能小助手</title>
    <link>https://blog.qife122.com/tags/web%E5%89%8D%E7%AB%AF/</link>
    <description>Recent content in Web前端 on 办公AI智能小助手</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <copyright>qife</copyright>
    <lastBuildDate>Sun, 11 Jan 2026 11:08:22 +0800</lastBuildDate>
    <atom:link href="https://blog.qife122.com/tags/web%E5%89%8D%E7%AB%AF/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>React Router 高危XSS漏洞 CVE-2026-21884 技术分析与缓解指南</title>
      <link>https://blog.qife122.com/p/react-router-%E9%AB%98%E5%8D%B1xss%E6%BC%8F%E6%B4%9E-cve-2026-21884-%E6%8A%80%E6%9C%AF%E5%88%86%E6%9E%90%E4%B8%8E%E7%BC%93%E8%A7%A3%E6%8C%87%E5%8D%97/</link>
      <pubDate>Sun, 11 Jan 2026 11:08:22 +0800</pubDate>
      <guid>https://blog.qife122.com/p/react-router-%E9%AB%98%E5%8D%B1xss%E6%BC%8F%E6%B4%9E-cve-2026-21884-%E6%8A%80%E6%9C%AF%E5%88%86%E6%9E%90%E4%B8%8E%E7%BC%93%E8%A7%A3%E6%8C%87%E5%8D%97/</guid>
      <description>&lt;h1 id=&#34;cve-2026-21884cwe-79remix-run-react-router-中网页生成期间输入过滤不当跨站脚本---实时威胁情报&#34;&gt;CVE-2026-21884：CWE-79：remix-run react-router 中网页生成期间输入过滤不当（跨站脚本） - 实时威胁情报&lt;/h1&gt;&#xA;&lt;p&gt;&lt;strong&gt;严重性：高&lt;/strong&gt;&#xA;&lt;strong&gt;类型：漏洞&lt;/strong&gt;&#xA;&lt;strong&gt;CVE：CVE-2026-21884&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;React Router 是 React 的一个路由库。在 @remix-run/react 版本 2.17.3 之前以及 react-router 版本 7.0.0 至 7.11.0 中，当在服务端渲染（SSR）过程中使用 getKey/storageKey 属性时，React Router 的 &lt;code&gt;&amp;lt;ScrollRestoration&amp;gt;&lt;/code&gt; API 在框架模式下存在一个 XSS 漏洞。如果使用不受信任的内容来生成密钥，此漏洞可能导致在 SSR 期间执行任意 JavaScript 代码。如果禁用了框架模式下的服务端渲染，或者正在使用声明式模式（&lt;code&gt;&amp;lt;BrowserRouter&amp;gt;&lt;/code&gt;）或数据模式（&lt;code&gt;createBrowserRouter&lt;/code&gt;/&lt;code&gt;&amp;lt;RouterProvider&amp;gt;&lt;/code&gt;），则此漏洞没有影响。此问题已在 @remix-run/react 版本 2.17.3 和 react-router 版本 7.12.0 中得到修复。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
