Security: remove the unused react-quill dependency (pulls in vulnerable Quill 1.x)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, next.js, node.js, react
- 领域
- build-system, frontend, security
调研方向
从 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 内容生成。
描述
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
npm uninstall react-quill- Check nothing breaks:
npm test,npm run build, and open the Notes app innpm run dev. - Run
npm auditand confirmquill/react-quillare gone from the report. - Paste the before/after
npm auditlines in the PR.
Done when
react-quillis removed frompackage.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 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codehubbers/OrbitOS 的其他 Issue
-
ci difficulty: easy documentation good first issue
难度 2/5 1-3 小时 新手友好度 72/100
codehubbers/OrbitOS#80 ·
维护者通常 1 天内回复
-
difficulty: easy documentation good first issue
难度 2/5 1-3 小时 新手友好度 74/100
codehubbers/OrbitOS#79 ·
维护者通常 1 天内回复
-
difficulty: easy good first issue
难度 1/5 1 小时以内 新手友好度 72/100
codehubbers/OrbitOS#78 ·
维护者通常 1 天内回复
-
🎨 Add 5+ new high-quality wallpapers to the Settings app可能已有人在做 @anshumanjadiya1102 于 1 天前认领。 未关闭design difficulty: easy frontend good first issue
难度 2/5 1-3 小时 新手友好度 85/100
codehubbers/OrbitOS#75 ·
维护者通常 1 天内回复
-
backend difficulty: hard performance
难度 4/5 3-5 天 新手友好度 35/100
codehubbers/OrbitOS#128 ·
维护者通常 1 天内回复
查看 codehubbers/OrbitOS 的全部 Issue
相似的 Issue
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallback可能已有人在做 @goranai 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 86/100
postcss/autoprefixer#1577 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
-
bug
难度 1/5 1 小时以内 新手友好度 78/100
PranshulGG/WeatherMaster#1266 · 3 条评论 ·
维护者通常 1 天内回复
-
FEATURE REQUEST
难度 2/5 1-3 小时 新手友好度 67/100
linuxmint/cinnamon-spices-applets#9356 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
opnsense/plugins#5976 · 1 条评论 ·
维护者通常 1 天内回复