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

Offen Anfängerfreundlich
#129 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
88/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv

Rechercherichtung

Beginne mit package.json und prüfe in src/, ob react-quill oder quill importiert wird; im Issue werden src/pages/apps/notes.js und src/pages/api/socket/io.js als Nutzer des separaten Pakets quill-delta genannt. Entferne die ungenutzte Abhängigkeit und führe anschließend npm test, npm run build und npm audit aus. Als erledigt gilt die Arbeit, wenn die Notes-App weiterhin funktioniert und das Audit quill oder react-quill nicht mehr meldet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
JavaScript
Sterne
16
Forks
8
Ø Merge
4 Std. 24 Min.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codehubbers/OrbitOS

Alle Issues in codehubbers/OrbitOS

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.