Skip to content

use vue-dompurify-html as a replacement for v-html - #1120

Merged
benderl merged 1 commit into
openWB:mainfrom
benderl:purify
Oct 9, 2026
Merged

benderl merged 1 commit into
openWB:mainfrom
benderl:purify

Conversation

@benderl

@benderl benderl commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

replaces #854

@benderl benderl self-assigned this Oct 8, 2026
@benderl benderl added the enhancement New feature or request label Oct 8, 2026
@benderl benderl mentioned this pull request Oct 8, 2026
@benderl
benderl requested a lite review from Copilot October 8, 2026 10:35

Copilot AI 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.

🟢 Approval recommended

All reviewed changes are consistent with the stated security improvement, with no unresolved blocking issues.

0 open findings

What changed in this PR

Replaces unsafe v-html message rendering with DOMPurify-backed sanitization while preserving links.

Changes:

  • Registers vue-dompurify-html.
  • Replaces v-html with sanitized rendering.
  • Updates dependency manifests and lockfile.
File Description
src/​main.js Registers the sanitization plugin.
src/​components/​OpenwbPageMessages.vue Uses sanitized HTML for messages.
package.json Adds the dependency.
package-lock.json Locks the dependency tree.

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@benderl
benderl requested a review from Brett-S-OWB October 8, 2026 10:37
@benderl
benderl merged commit b9e2112 into openWB:main Oct 9, 2026
1 check passed
@benderl
benderl deleted the purify branch October 9, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants