Critical vulnerability
Critical cross-site scripting in @waline/client (CVE-2026-64670)
Cross-site scripting in @waline/client · npm
CVE-2026-64670
@waline/client vulnerable to stored XSS through unsanitized comment edit previews
- Severity
- Critical 9.3
- Published
- 25 Nov 2026
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data
@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.
| Software | Affected versions |
|---|---|
| @waline/clientnpm |
|
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-64670
- GitHub Advisory Database https://github.com/advisories/GHSA-crj3-q72p-ggqm
From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.