Waline Comment System XSS Vulnerabilities
2026-11-11
Stored cross-site scripting in the Waline comment system (npm @waline/client 3.15.2 and earlier) lets an unauthenticated commenter plant raw HTML in a comment body that executes in an administrator's or comment owner's browser the moment they click Edit during routine moderation. The sink is the client editor's live preview, which renders the pre-sanitization comment body with marked and injects it through v-html; because the preview node uses v-show (display:none) rather than v-if it is already in the DOM at mount, so an img onerror payload fires without the moderator ever opening the preview tab. Successful exploitation yields full administrative account takeover, since the Waline JWT is stored in same-origin localStorage, and the vendor advisory states there are no publicly available patches at publication; the advisory does publish a step-by-step proof-of-concept payload, and no in-the-wild exploitation or CISA KEV listing is reported.
Stored cross-site scripting in the @waline/client UserList widget (Waline 3.15.2 and earlier) lets any unauthenticated visitor post a comment whose 'link' field is stored verbatim and later concatenated into root.innerHTML, so attacker script executes without interaction for every visitor of a page that embeds the widget. The scope-change (S:C) impact covers defacement, redirects, phishing and CSRF-on-behalf for anonymous viewers, and theft of the same-origin waline JWT from localStorage when a logged-in user or administrator loads the widget - escalating to account or admin takeover. The vendor advisory is public and documents a proof-of-concept payload; a public PoC reference exists and is not verified beyond the advisory write-up, there is no CISA KEV listing, and no vendor-released patch has been identified at time of analysis.