Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"js-cookie": "3.0.5",
"js-yaml": "4.1.1",
"jsonwebtoken": "catalog:",
"linkify-it": "5.0.0",
"linkify-it": "5.0.1",
"lucide-react": "0.552.0",
"mailgun.js": "12.7.1",
"monaco-editor": "0.55.1",
Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/components/cloud-agent-next/MessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import LinkifyIt from 'linkify-it';
const linkify = new LinkifyIt();

function TextWithLinks({ text }: { text: string }) {
// Skip linkification for very large inputs to bound worst-case render time
// (defense-in-depth against CVE-2026-48801 / GHSA-22p9-wv53-3rq4)
if (text.length > 50_000) {
return <>{text}</>;
}
const parts: React.ReactNode[] = [];
let lastIndex = 0;
for (const match of linkify.match(text) ?? []) {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.