Skip to content

vmui: render unsafe markdown links as text in logs view#1470

Open
func25 wants to merge 6 commits into
masterfrom
fix-vmui-markdown-http-links
Open

vmui: render unsafe markdown links as text in logs view#1470
func25 wants to merge 6 commits into
masterfrom
fix-vmui-markdown-http-links

Conversation

@func25

@func25 func25 commented Jun 2, 2026

Copy link
Copy Markdown
Member

Only explicit http:// and https:// links are rendered as clickable links. Other markdown links and images are rendered as plain text.

Follow up aadc99b

@func25
func25 requested review from Loori-R and valyala June 2, 2026 00:00

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@Loori-R

Loori-R commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Updated the markdown link rendering changes:

  • moved link-related helpers into a separate markedLinks utility
  • kept only explicit inline http/https markdown links clickable
  • rendered reference-style links and reference definitions as plain text
  • rejected URL control characters, including C1 controls
  • added tests for XSS in link text, reference-style links, preserved definitions, and control-character URLs

Comment thread app/vmui/packages/vmui/src/utils/marked/markedLinks.ts Outdated
func25 and others added 2 commits June 28, 2026 07:36
Signed-off-by: Phuong Le <39565248+func25@users.noreply.github.com>
@func25
func25 requested a review from Loori-R July 13, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants