Skip to content
DayZeroHub
Critical CVSS 9.3GHSA-crj3-q72p-ggqmCVE-2026-64670

Stored XSS in @waline/client via unsanitized comment edit preview

@waline/client

Summary

@waline/client, up to version 3.16.2, renders the comment editor preview without sanitizing content. This allows stored XSS against an administrator who edits a malicious comment. The CVSS 3.1 score is 9.3 (critical).

What happened

The Waline client builds the editor preview with the marked library, with no sanitizer, and injects the result into the page using v-html. When a comment is edited, the editor is filled with the original, unsanitized comment body. The server does sanitize the publicly displayed copy, so ordinary readers are not affected. The edit preview, however, lacks that protection. Because the preview node exists in the DOM even while hidden, malicious HTML can run without the moderator opening the preview tab. Only administrators and the comment's author can edit. An unauthenticated commenter could therefore get their code to run in the session of an administrator who clicks Edit on their comment. The source classifies the flaw as CWE-79 and CWE-116.

Why it matters

According to the source, the Waline session token (JWT) is stored in same-origin local storage, so injected code could read it. This would allow full takeover of the administrator account. Exploitation requires user interaction (clicking Edit). CVSS 3.1 vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N, score 9.3, critical severity (source: GHSA). The identifiers are CVE-2026-64670 and GHSA-crj3-q72p-ggqm. The source does not state active exploitation, and the flaw is not listed as exploited in CISA's KEV catalog.

Affected products and versions

@waline/client (npm), versions <= 3.16.2.

ProductVersionsFixed in
@waline/client<= 3.16.2—

Action recommended by the source

The source does not state a fixed version. The advisory suggests sanitizing parseMarkdown's output with DOMPurify before returning it, mirroring the server's guard, and adding dompurify as a dependency of @waline/client. Readers should check the vendor advisory at https://github.com/walinejs/waline/security/advisories/GHSA-crj3-q72p-ggqm for the status of a fix.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-79, CWE-116

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources