npm
CVE-2026-64670
@waline/client vulnerable to stored XSS through unsanitized comment edit previews
- Severity
- Critical 9.3
- Published
- 25 Nov 2026
- Last changed
- 25 Nov 2026
- Added to UpHeron
- 25 Nov 2026
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N- Also known as
- GHSA-crj3-q72p-ggqm
- Sources
- OSV.dev and GitHub
Description
@waline/client renders the comment editor's live preview with marked and no sanitizer (utils/markdown.ts), and the preview is injected with v-html.
When a comment is edited, the editor is seeded with the comment's raw, un-sanitized body (orig).
Only administrators and the comment owner can edit. So an administrator who clicks Edit on an attacker's comment renders that attacker's raw HTML in their own session: an unauthenticated commenter achieves privilege-escalation stored XSS against a moderator with a single Edit click.
packages/client/src/utils/markdown.ts:18-37 renders markdown with marked and returns the raw HTML with no sanitization (the client bundles no DOMPurify):
packages/client/src/components/CommentBox.vue:
watchImmediate runs the callback synchronously at mount, so previewText is populated with the unsanitized render as soon as the box mounts in edit mode.
Affected software
| Software | Affected versions |
|---|---|
@waline/clientnpm · osv:npm:@waline/client |
|
About @waline/client
- Weekly downloads (npm)
- 18,485npm, 25 Nov 2026
This is the only vulnerability in @waline/client in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-64670
- GitHub Advisory Database https://github.com/advisories/GHSA-crj3-q72p-ggqm