6.4

CVE-2026-31809: SiYuan has a SVG Sanitizer Bypass via Whitespace in `javascript:` URI — Unauthenticated XSS

Analyzed
AliasesGHSA-pmc9-f5qr-2pcrGO-2026-4669
Published 10-03-2026Last modified 11-03-2026

Vulnerability summary

CVE-2026-31809 is a medium (CVSS 6.4) vulnerability in b3log siyuan. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 47.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.4/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.55%
0%100%
Low · +0.04 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 2

Timeline

  1. 10-03-2026
    PublishedVulnerability first disclosed.
  2. 11-03-2026
    Last modifiedVulnerability information updated.

Description

SiYuan is a personal knowledge management system. Prior to 3.5.10, SiYuan's SVG sanitizer (SanitizeSVG) checks href attributes for the javascript: prefix using strings.HasPrefix(). However, inserting ASCII tab (	), newline (
), or carriage return (
) characters inside the javascript: string bypasses this prefix check. Browsers strip these characters per the WHATWG URL specification before parsing the URL scheme, so the JavaScript still executes. This allows an attacker to inject executable JavaScript into the unauthenticated /api/icon/getDynamicIcon endpoint, creating a reflected XSS. This is a second bypass of the fix for CVE-2026-29183 (fixed in v3.5.9). This vulnerability is fixed in 3.5.10.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.55%

Chance of exploitation in the next 30 days

Percentile

48%

Versus all other CVEs

30-day change

Increase +0.04 pp

From 0.52% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Siyuan

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

B3log1 product
Github.com/siyuan-note/siyuan1 product
  • kernel< 0.0.0-20260310025236-297bd526708f
Siyuan-note1 product

3 vendors · 3 products

References

4 links