Skip to content

Fix escapeHTML missing double quote escaping#69

Open
hobostay wants to merge 1 commit into
vercel-labs:mainfrom
hobostay:fix/escapehtml-quote-escaping
Open

Fix escapeHTML missing double quote escaping#69
hobostay wants to merge 1 commit into
vercel-labs:mainfrom
hobostay:fix/escapehtml-quote-escaping

Conversation

@hobostay
Copy link
Copy Markdown

@hobostay hobostay commented May 5, 2026

Summary

  • Fix escapeHTML() in @wterm/dom renderer not escaping double quotes (")
  • The function is used to sanitize text before injecting into innerHTML via <span style="${runStyle}"> — unescaped " could theoretically break out of the style attribute
  • Add &quot; replacement for defense in depth

Test plan

  • Run existing renderer tests: pnpm test
  • Verify terminal rendering still works correctly with normal content

🤖 Generated with Claude Code

escapeHTML is used to sanitize text before injecting into innerHTML
via style attributes (<span style="...">). Without escaping double
quotes, text content containing " could break out of the style
attribute. Add &quot; escaping for defense in depth.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant