Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-w836-5gpm-7r93

Опубликовано: 21 янв. 2026
Источник: github
Github: Прошло ревью
CVSS4: 2.1
CVSS3: 4.6

Описание

SiYuan has a Reflected Cross-Site Scripting (XSS) via /api/icon/getDynamicIcon

Summary

Reflected XSS in /api/icon/getDynamicIcon due to unsanitized SVG input.

Details

The endpoint generates SVG images for text icons (type=8). The content query parameter is inserted directly into the SVG tag without XML escaping. Since the response Content-Type is image/svg+xml, injecting unescaped tags allows breaking the XML structure and executing JavaScript.

PoC

Payload: test</text><script>alert(window.origin)</script><text>

  1. Open any note and click Change Icon -> Dynamic (Text).

    image
  2. Change color and paste the payload into the Custom field and click on this icon.

    image
  3. Intercept and send the request or get path from devtools

    image
image
  1. The JavaScript payload executes afted open URL. image
image

Impact

Arbitrary JavaScript execution in the user's session context if the SVG is loaded directly. It also prevents using legitimate characters like < or > in icon text.

Note

Tested version: image

Пакеты

Наименование

github.com/siyuan-note/siyuan/kernel

go
Затронутые версииВерсия исправления

< 0.0.0-20260118021606-5c0cc375b475

0.0.0-20260118021606-5c0cc375b475

EPSS

Процентиль: 8%
0.00028
Низкий

2.1 Low

CVSS4

4.6 Medium

CVSS3

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 6.1
nvd
19 дней назад

SiYuan is a personal knowledge management system. Versions prior to 3.5.4 are vulnerable to reflected cross-site scripting in /api/icon/getDynamicIcon due to unsanitized SVG input. The endpoint generates SVG images for text icons (type=8). The content query parameter is inserted directly into the SVG <text> tag without XML escaping. Since the response Content-Type is image/svg+xml, injecting unescaped tags allows breaking the XML structure and executing JavaScript. Version 3.5.4 patches the issue.]

EPSS

Процентиль: 8%
0.00028
Низкий

2.1 Low

CVSS4

4.6 Medium

CVSS3

Дефекты

CWE-79