Stored XSS in @waline/client Comment Edit Preview Enables Admin Account Takeover (CVE-2026-64670)
A new GitHub Security Advisory (GHSA-crj3-q72p-ggqm, CVE-2026-64670) discloses a stored XSS vulnerability in @waline/client, the frontend package for the Waline commenting system. The advisory reports a CVSS of 9.3 and a public proof-of-concept.
What Was Reported
According to the advisory, @waline/client renders the comment editor's live preview using marked with no HTML sanitizer, injecting the result via Vue's v-html. When a comment is opened for editing, the editor is seeded with the comment's raw, un-sanitized body (orig) rather than the sanitized display copy. The preview panel uses v-show instead of v-if, so the unsanitized markup is rendered into the DOM as soon as the edit box mounts. This happens even without the moderator opening the preview tab. Only administrators and the comment's own author can trigger the Edit action. The practical effect is that an anonymous, unauthenticated commenter can post a malicious payload that executes in an administrator's session the moment that admin clicks Edit during normal moderation.
Why It Matters for Defenders
Waline is a self-hosted and serverless commenting system embedded in many blogs and static sites. Per the advisory, Waline stores its session JWT in same-origin localStorage. The described payload (an <img onerror> tag) can read and exfiltrate that token, yielding full administrative account takeover with a single click. No further interaction beyond opening the comment moderation UI is required. The public-facing comment listing is not affected, since the server-side sanitization path (markdown-it plus DOMPurify) is applied there. The gap is specifically in the client-side edit-preview rendering path, which bypasses that protection.
What Defenders Should Do Now
- Identify any sites running
@waline/client(directly, or bundled via Waline server or theme integrations) and check for an available patched release before resuming normal comment moderation. - Until patched, treat the Edit function on untrusted or anonymous comments as high risk. Avoid clicking Edit on suspicious or unexpected comment content from an administrative session.
- Consider moving the Waline session token out of
localStoragereach where possible (for example, a stricter CSP or isolating the admin moderation UI) to reduce the blast radius of any token-theft XSS. - Watch for anomalous outbound requests from admin browser sessions to unfamiliar domains immediately after comment-moderation activity, and for unexpected admin actions following moderation sessions, as a sign of token theft and reuse.
- Review comment-ingestion logs for submissions containing HTML or markdown payloads with embedded event handlers (for example,
onerror,onload) targeting the comment body field, since these would not visibly render on the public page but could still be stored.
This is a same-day, developing disclosure with a public proof-of-concept and no confirmed in-the-wild exploitation reported at this time. Details may be updated as the maintainers respond. See the original advisory at GHSA-crj3-q72p-ggqm for the full technical write-up and fix status.
Detections in this post
- CVE-2026-64670 — @waline/client Stored XSS via Unsanitized Comment Edit Previews (CVE-2026-64670)