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

Đang mở Phù hợp với người mới
#129 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi

Hướng nghiên cứu

Bắt đầu với package.json và kiểm tra xem react-quill hoặc quill có được import trong src/ không; issue nêu src/pages/apps/notes.js và src/pages/api/socket/io.js là các nơi sử dụng package riêng quill-delta. Xóa dependency không được dùng, sau đó chạy npm test, npm run build và npm audit. Công việc hoàn tất khi ứng dụng Notes vẫn hoạt động và kết quả audit không còn báo cáo quill hoặc react-quill.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
16
Fork
8
Merge trung bình
4 giờ 24 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codehubbers/OrbitOS

Tất cả issue của codehubbers/OrbitOS

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.