Redux DevTools panel of @rozenite/redux-devtools-plugin bundles immutable, lodash-es and fast-uri with published advisories

未关闭
#573 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
devtools, security

调研方向

Start with the plugin's package.json and lockfile, then trace how @redux-devtools/app is included in the panel build. Update the resolved dependencies or add pnpm.overrides to meet the suggested minimum versions, rebuild, and inspect the generated panel bundle for the updated libraries. Done means the published package no longer contains the vulnerable versions.

由索引模型根据 Issue 内容生成。

描述

Describe the bug

dist/devtools/assets/panel-DqWqTEK4.js in @rozenite/[email protected] inlines, through the devDependency @redux-devtools/app 6.2.2:

  • immutable 4.3.7 and 5.1.3: CVE-2026-29063 (GHSA-wf6x-7x77-mvgw, prototype pollution), CVE-2026-59879 (List trie overflow DoS) and CVE-2026-59880 (Map/Set hash-collision DoS)
  • lodash-es 4.17.21 (via @rjsf): CVE-2025-13465 (GHSA-f23m-r3pf-42rh, prototype pollution in unset/omit)
  • fast-uri 3.0.6 (via ajv): CVE-2026-6321, CVE-2026-6322, CVE-2026-18446, CVE-2026-75975 and CVE-2026-76172

None of these is a declared dependency, so npm audit and your users' SCA tools cannot flag them.

The code is in use, but we did not find a way for it to lead to an exploit in this package.

Because the copy ships where dependency audits cannot see it, it is easy to miss. We would suggest updating it when convenient, and sooner if untrusted input can reach it in your setup.

Suggested fix: refresh the lockfile or add pnpm.overrides so the panel build gets immutable >= 4.3.9 / >= 5.1.8, lodash-es >= 4.17.23 and fast-uri >= 3.1.8, then rebuild and publish.

System Info

N/A: independent of Node version, OS and package manager. The code is in the published package itself.

Rozenite Version

@rozenite/[email protected] (current latest)

Reproduction

https://www.npmjs.com/package/@rozenite/redux-devtools-plugin/v/2.5.0?activeTab=code

Steps to reproduce
  1. @rozenite/[email protected]:
npm pack @rozenite/[email protected]
mkdir redux-devtools-plugin && tar xzf rozenite-redux-devtools-plugin-2.5.0.tgz -C redux-devtools-plugin
grep -noF 'IS_COLLECTION_SYMBOL' redux-devtools-plugin/package/dist/devtools/assets/panel-DqWqTEK4.js | head -2
# 79129:IS_COLLECTION_SYMBOL
# 79131:IS_COLLECTION_SYMBOL
grep -cF 'isProtoKey' redux-devtools-plugin/package/dist/devtools/assets/panel-DqWqTEK4.js
# 0  (`isProtoKey` is added in later versions)
grep -noF 'nonSimpleDomain' redux-devtools-plugin/package/dist/devtools/assets/panel-DqWqTEK4.js | head -2
# 39177:nonSimpleDomain
# 39239:nonSimpleDomain
grep -cF 'getSchemeHandler' redux-devtools-plugin/package/dist/devtools/assets/panel-DqWqTEK4.js
# 0  (`getSchemeHandler` is added in later versions)
  1. None of these libraries is declared in the package's package.json, so npm audit does not report them.
主要语言
TypeScript
星标
680
派生
58
平均合并
5 天 1 小时
30 天内合并 PR
7

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/rozenite 的其他 Issue

查看 callstackincubator/rozenite 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。