fix(deps): override undici to ^6.27.0 (patch 4 transitive advisories) - #5
Merged
Conversation
discord.js@14.26.4 (latest) still pins undici@6.24.1, which is in the vulnerable range (<=6.26.0): high-sev Set-Cookie header injection plus 3 moderate (WebSocket DoS, response-queue poisoning, SameSite downgrade). An npm overrides entry forces the patched 6.27.0 within the same major, so it stays API-compatible with @discordjs/rest/@discordjs/ws. npm audit now reports 0 vulnerabilities; no discord.js downgrade needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was
Fügt einen npm-
overrides-Eintrag hinzu, derundiciauf^6.27.0zwingt.Warum
npm auditmeldete im Deploy 4 Vulnerabilities (1 high / 3 moderate) — alle aus einer Quelle:undici, transitiv überdiscord.js→@discordjs/rest/@discordjs/ws.discord.js@14.26.4ist bereits die neueste Version, pinnt aber weiterhin das verwundbareundici@6.24.1(Bereich<=6.26.0).npm audit fix --forcewürde discord.js auf v13 downgraden → destruktiver Breaking Change, nicht akzeptabel.6.27.0innerhalb desselben 6.x-Major → API-kompatibel mit dem, was@discordjs/resterwartet.Behobene Advisories
Verifikation
npm audit→ 0 vulnerabilitiesnpm ls undici→undici@6.27.0(dedupliziert über alle discord.js-Subpfade)npm run smoke→ bestanden (Locales, 15 Commands, Events, Components valide)🤖 Generated with Claude Code