Skip to content

fix(email): HTML-escape interpolated values in email templates - #57

Closed
qwenbona wants to merge 1 commit into
moshcoder:masterfrom
qwenbona:fix/email-html-escape
Closed

fix(email): HTML-escape interpolated values in email templates#57
qwenbona wants to merge 1 commit into
moshcoder:masterfrom
qwenbona:fix/email-html-escape

Conversation

@qwenbona

Copy link
Copy Markdown
Contributor

Dynamic values (GitHub issue titles, actor names, repo names, tenant brands) were interpolated raw into HTML email bodies. A GitHub issue titled <script>alert(1)</script> lands unescaped in the repo owner notification email.

Add escapeHtml helper and apply to every dynamic value in HTML context.

Fixes #48

Dynamic values (GitHub issue titles, actor names, repo names, tenant
brands) were interpolated raw into HTML email bodies. A GitHub issue
titled <script>alert(1)</script> would land unescaped in the repo
owner's notification email. Add escapeHtml and apply it to every
dynamic value rendered in HTML context.

Fixes moshcoder#48
@ralyodio ralyodio closed this Jul 31, 2026
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.

2 participants