fix(security): bump linkify-it to 5.0.1 to fix CVE-2026-48801 (GHSA-22p9-wv53-3rq4)#4347
Open
kilo-code-bot[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryRoutine dependency bump (linkify-it 5.0.0 -> 5.0.1) plus a defense-in-depth length guard in Files Reviewed (3 files)
Reviewed by claude-sonnet-5-20260630 · Input: 16 · Output: 3.2K · Cached: 308.2K Review guidance: REVIEW.md from base branch |
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.
Summary
Bumps
linkify-itfrom5.0.0to5.0.1inapps/web/package.jsonto remediate CVE-2026-48801 / GHSA-22p9-wv53-3rq4 — a quadratic algorithmic complexity (ReDoS-class) vulnerability inLinkifyIt#match.The
match()scan loop inlinkify-it ≤ 5.0.0is O(N²), allowing a crafted large input to cause a browser tab freeze. The5.0.1patch rewrites the loop to O(N).Changes:
linkify-itto5.0.1inapps/web/package.jsonpnpm-lock.yamlaccordinglyTextWithLinks(MessageBubble.tsx) as defense-in-depth to bound worst-case render time independent of library versionKilo Security Finding: https://app.kilo.ai/security-agent/findings?findingId=5efc4952-22ad-4223-88f7-4d24e122fb71
Verification
Manually verified that
pnpm installresolveslinkify-it@5.0.1in the lockfile. The vulnerablelinkify.match(text)call site inMessageBubble.tsxis guarded by the input length check before calling into the library.Visual Changes
N/A
Reviewer Notes
The vulnerability is client-side only —
MessageBubble.tsxis a'use client'Next.js component, so execution occurs in the browser. An authenticated attacker sharing a session could post a large crafted message to freeze a victim's browser tab. No server-side DoS risk exists for this code path.