Leveranciersincident · Bron: GitHub Security Advisories · Zekerheid: waarschijnlijk · Gepubliceerd 25 november 2026
@waline/client vulnerable to stored XSS through unsanitized comment edit previews
Geen actie nodig; we volgen dit.
Werk je bij een gemeente? Log in om te zien of dit jouw gemeente raakt. Het oordeel komt dan uit het register van je gemeente.
Deze dreiging is mogelijk relevant voor je gemeente. Omdat het een leverancier betreft, is de gemeente afhankelijk van diens herstel en is regie op de keten nodig. De impact is beheersbaar als je de geadviseerde maatregelen op tijd opvolgt. Laat de CISO de voortgang bewaken en escaleer naar de directie als nieuwe signalen daar aanleiding toe geven.
Betrokken rollen: CISO · ISO · SOC · ICT beheer · Leveranciersmanager
### 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): ```ts return marked.parse(parseEmoji(content, emojiMap)) as string; ``` `packages/client/src/components/CommentBox.vue`: ```ts 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 }); }); ``` ```html ``` `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 ` ` 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": " " } ``` 2. 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`. 3. As an administrator or the comment owner, click Edit on that comment during normal moderation. 4. `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 ` ` 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'] })`.
CVE-2026-64670
Leveranciers: npm
Exploiteerbaarheid: geen exploit bekend. Blootstelling: niet internet-facing / geen bekende blootstelling. Gemeentelijke relevantie: geen match met de gemeentelijke context. Impact: burgerdienstverlening kan geraakt worden. Bronvertrouwen: middel.
Exploiteerbaarheid · Geen exploit bekend
geen exploit bekend
Blootstelling · Laag
niet internet-facing / geen bekende blootstelling
Gemeentelijke relevantie · Geen match
geen match met de gemeentelijke context
Deel geen vertrouwelijke of persoonsgegevens in dit formulier. Beschrijf je melding algemeen; gevoelige details horen niet op een publieke radar thuis.
Impact · Dienstverlening
burgerdienstverlening kan geraakt worden
Zekerheid en bronkwaliteit · Middel
beperkt bevestigd
Mitigatie · Laag
geen mitigatie bekend
Leveranciersketenimpact · verhogend
De dreiging raakt een leverancier of de toeleveringsketen; gemeenten zijn sterk afhankelijk van externe leveranciers.
Exploit alleen geclaimd · verlagend
Een exploit wordt geclaimd (community/onbevestigd) maar is niet onafhankelijk geverifieerd.
Beperkte zekerheid van het signaal · verlagend
De zekerheid is 'waarschijnlijk'; een onbevestigd signaal verlaagt de urgentie tot het is geverifieerd.
Deze dreiging scoort 55/100 voor de gemeentelijke relevantie. Meegewogen: geen leverancier uit de catalogus of gemeentelijke context. Wel meegewogen: een hoge ernstinschaling, impact op identity of Microsoft 365 en een leveranciers- of ketenrisico. Geraakte processen: Netwerk en infrastructuur, Leveranciersketen.
Geraakte processen: Netwerk en infrastructuur, Leveranciersketen
Geraakte technologie: @waline/client, Opensource, npm
Categorie 'leveranciersincident': overgenomen van de bron ('leveranciersincident'); losse termen in het advies bepalen het soort dreiging niet. Ernst 'kritiek' bepaald op basis van: bronlabel 'kritiek', trefwoord 'unauthenticated'. Zekerheid 'waarschijnlijk': gerenommeerd securityonderzoek (GitHub Security Advisories). Geen bekende leveranciers of producten herkend.
De prioriteit volgt vaste regels en is na te rekenen; er komt geen AI-inschatting aan te pas. Weeg de aannames mee voor je eigen omgeving.