Security: remove the unused react-quill dependency (pulls in vulnerable Quill 1.x)

未关闭 适合新手
#129 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃

调研方向

从 package.json 开始,检查 src/ 中是否导入了 react-quill 或 quill;issue 指出 src/pages/apps/notes.js 和 src/pages/api/socket/io.js 使用了独立的 quill-delta 包。移除未使用的依赖,然后运行 npm test、npm run build 和 npm audit。完成的标准是 Notes 应用仍能正常运行,且审计不再报告 quill 或 react-quill。

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

描述

difficulty: easy good first issue security

New here? Say hi on Discord first, it's the fastest way to get help: https://discord.gg/NW2YZACf4k

npm audit reports a moderate XSS advisory for quill. It comes from react-quill in package.json, which bundles Quill 1.3.7.

But nothing in src/ imports react-quill or quill. The editor code only uses quill-delta (src/pages/apps/notes.js and src/pages/api/socket/io.js), and that's a separate package with no advisory. So the vulnerable code is dead weight we ship in node_modules, and it makes the audit noisy.

Steps

  1. npm uninstall react-quill
  2. Check nothing breaks: npm test, npm run build, and open the Notes app in npm run dev.
  3. Run npm audit and confirm quill / react-quill are gone from the report.
  4. Paste the before/after npm audit lines in the PR.

Done when

  • react-quill is removed from package.json.
  • CI is green.
  • Notes still works.

A nice small security fix if you're new.


Comment "I'd like to take this" and we'll assign you. Questions are welcome in Discord: https://discord.gg/NW2YZACf4k

主要语言
JavaScript
星标
16
派生
8
平均合并
4 小时 24 分钟
30 天内合并 PR
10

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

codehubbers/OrbitOS 的其他 Issue

查看 codehubbers/OrbitOS 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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