On this page (7 sections)

A critical stored cross-site scripting (XSS) flaw has been published for @waline/client, the front-end package of the Waline comment system. An unauthenticated visitor can post a comment that stays harmless for ordinary readers but runs attacker-controlled script in the browser of an administrator or moderator who clicks Edit on it. The GitHub advisory says the result can be full administrative account takeover.

If you run a site that embeds Waline comments, especially one where you moderate by hand, this applies to you. As of the advisory, there is no patched version, so the practical work is reducing exposure until a fix ships.

What happened

The advisory describes a path where text that the server deliberately cleans for public display is left raw for the editing screen. When someone with edit rights opens a comment for editing, the client loads the original, unsanitized comment body into the editor and renders a live preview from it. Because that preview is built without any sanitizer, HTML in the comment is interpreted by the moderator's browser.

The CVE record was published by the National Vulnerability Database on November 11, 2026, and the GitHub advisory was reviewed and updated on November 25, 2026. The advisory's own timeline also lists an original repository publication on July 2, 2026. The research found only one independent publisher covering this so far, so treat details beyond the advisory as unverified.

How the flaw works

This is a classic stored XSS with an unusual twist: the dangerous rendering happens only in the privileged edit view, not on the public page.

  • The server keeps two copies of a comment. The display copy is sanitized, so public readers see at worst a broken image. A raw copy (called orig) is also stored and is returned to logged-in users.
  • In the edit view, the client seeds the editor with that raw copy and immediately renders a preview using the marked library with no sanitizer, then inserts the result into the page as HTML.
  • The preview element is hidden rather than removed from the page, so according to the advisory the script can run as soon as the edit box loads, without the moderator opening the preview tab.

Only administrators and the comment owner can edit, so the realistic target is a moderator. The advisory notes that the Waline login token is kept in the browser's same-origin local storage, which script running in the page can read. That is why the impact is described as full administrative account takeover rather than a cosmetic bug.

The CVSS vector in the advisory lists network attack, low complexity, no privileges required, user interaction required, changed scope, and high confidentiality and integrity impact. The user interaction is a single click on Edit during normal moderation.

Who is exposed

You are most exposed if all of these are true: you use the Waline client package, your site accepts comments from anonymous visitors, and an administrator moderates by opening comments in the editor. Sites that require registration before commenting reduce the pool of possible attackers but do not remove the issue, since the advisory describes an unauthenticated commenter as the attacker.

There is also a version ambiguity to be aware of. The advisory and package data list affected versions as <= 3.16.2, while the CVE description text says 3.15.2 and prior. Until the maintainers clarify, assume any version up to and including 3.16.2 is affected.

How to check your exposure

First find out whether your project depends on the package and which version it resolves to. Run this read-only command in the root of your front-end project; it lists the installed @waline/client version, if any.

List the installed @waline/client version (run in your project directory)Shell
npm ls @waline/client

If you load Waline from a CDN script tag instead, look at the URL in your page templates for a version number. Then check whether pending comments contain raw HTML tags, which legitimate commenters rarely post. Use the moderation list or database view in your Waline admin panel rather than clicking Edit on suspicious entries.

What to do now

  1. Check the Waline advisory page for a patched release and upgrade @waline/client as soon as one is published.
  2. Until then, stop clicking Edit on comments from unknown commenters. Approve or delete them from the list view instead.
  3. Review recent comments for raw HTML such as image tags with event attributes, and delete any you find without opening the editor.
  4. Consider requiring login or manual approval for new commenters to shrink the set of people who can plant a payload.
  5. If an administrator may have opened a suspicious comment in the editor, treat that session as compromised: log out, rotate the admin credentials, and review recent admin actions.
  6. Add a Content Security Policy that blocks inline event handlers and restricts script sources, which can limit what injected markup can do.
  7. If you maintain a fork or build from source, apply the advisory's suggested fix: sanitize the output of the markdown parsing function with DOMPurify before it is rendered.
Caution. Rotating admin credentials and logging users out can lock out legitimate moderators for a short time. Do it when you can coordinate with your team, and keep a recovery path available.
Tip. A Content Security Policy is defense in depth, not a fix. Test it in report-only mode first, since a strict policy can break other scripts on the page. You can review your current headers with the free security headers checker and read more in security headers explained.

Detection and monitoring afterwards

Because the payload is stored, evidence may already sit in your comment data. Search stored comment bodies for HTML tags and attributes that have no place in normal comments. Also watch for admin logins from unfamiliar locations, unexpected changes to comments or settings, and any unexplained new scripts on pages that carry the comment widget.

Webforta's security scans and monitoring can help you notice header changes and unexpected changes to your public site, but a flaw that only fires inside a logged-in admin view is not something outside-in checks will reliably see, so rely on the manual review above. For broader hygiene, see website security for small business.

Timeline

Dates as stated in the advisory and CVE record
DateEvent
Jul 2, 2026Advisory published in the walinejs/waline repository
Nov 11, 2026CVE record published by the National Vulnerability Database
Nov 25, 2026Advisory reviewed and updated on the GitHub Advisory Database; patched versions listed as none

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-64670 - GitHub Advisory Databasegithub.com
  • Waline
  • XSS
  • CVE-2026-64670
  • npm
  • comment systems