Skip to content

feat: Sanitize text sources#877

Merged
eKoopmans merged 4 commits intomainfrom
ekoopmans/fix-xss
Jan 12, 2026
Merged

feat: Sanitize text sources#877
eKoopmans merged 4 commits intomainfrom
ekoopmans/fix-xss

Conversation

@eKoopmans
Copy link
Copy Markdown
Owner

This PR fixes a high-severity cross site scripting (XSS) vulnerability in html2pdf.js, specifically when using user-authored text as a source. Those text sources are now sanitized using dompurify.

Closes #865

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@eKoopmans eKoopmans merged commit 988826e into main Jan 12, 2026
6 checks passed
@eKoopmans eKoopmans deleted the ekoopmans/fix-xss branch January 12, 2026 01:14
@ekoopmans-github-release-tokens
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cross-Site Scripting

1 participant