Security: remove the unused react-quill dependency (pulls in vulnerable Quill 1.x)
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
- Tech-Stack
- javascript, next.js, node.js, react
- Bereich
- build-system, frontend, security
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
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
- 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
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codehubbers/OrbitOS
-
ci difficulty: easy documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
codehubbers/OrbitOS#80 ·
Maintainer antworten meist innerhalb von 1 Tag
-
difficulty: easy documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
codehubbers/OrbitOS#79 ·
Maintainer antworten meist innerhalb von 1 Tag
-
difficulty: easy good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
codehubbers/OrbitOS#78 ·
Maintainer antworten meist innerhalb von 1 Tag
-
🎨 Add 5+ new high-quality wallpapers to the Settings appEvtl. vergeben @anshumanjadiya1102 hat das vor 1 Tag übernommen. Offendesign difficulty: easy frontend good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
codehubbers/OrbitOS#75 ·
Maintainer antworten meist innerhalb von 1 Tag
-
backend difficulty: hard performance
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
codehubbers/OrbitOS#128 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codehubbers/OrbitOS
Ähnliche Issues
-
flex-flow: wrap-reverse gets a vertical, reversed 2009 box fallbackEvtl. vergeben @goranai hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
postcss/autoprefixer#1577 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
PranshulGG/WeatherMaster#1266 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
FEATURE REQUEST
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
linuxmint/cinnamon-spices-applets#9356 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
opnsense/plugins#5976 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag