Skip to content

x/vulndb: potential Go vuln in github.com/siyuan-note/siyuan/kernel: GHSA-pcjq-j3mq-jv5j #4324

@GoVulnBot

Description

@GoVulnBot

Advisory GHSA-pcjq-j3mq-jv5j references a vulnerability in the following Go modules:

Module
github.com/siyuan-note/siyuan/kernel

Description:

Summary

A Stored Cross-Site Scripting (XSS) vulnerability exists in SiYuan Note. The application does not sanitize uploaded SVG files. If a user uploads and views a malicious SVG file (e.g., imported from an untrusted source), arbitrary JavaScript code is executed in the context of their authenticated session.

Details

The application allows authenticated users to upload files, including .svg images, without sanitizing the input to remove embedded JavaScript code (such as <script> tags or event handlers).

PoC

  1. Create a new "Daily note" in the workspace.
    <img width="1287" height=...

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/siyuan-note/siyuan/kernel
      versions:
        - fixed: 0.0.0-20260116101155-11115da3d0de
summary: |-
    SiYuan Has a Stored Cross-Site Scripting (XSS) Vulnerability via Unrestricted
    SVG File Upload in github.com/siyuan-note/siyuan/kernel
cves:
    - CVE-2026-23645
ghsas:
    - GHSA-pcjq-j3mq-jv5j
references:
    - advisory: https://github.com/advisories/GHSA-pcjq-j3mq-jv5j
    - advisory: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-pcjq-j3mq-jv5j
    - fix: https://github.com/siyuan-note/siyuan/commit/11115da3d0de950593ee4ce375cf7f9018484388
    - report: https://github.com/siyuan-note/siyuan/issues/16844
notes:
    - fix: 'github.com/siyuan-note/siyuan/kernel: could not add vulnerable_at: cannot auto-guess when fixed version is 0.0.0 pseudo-version'
source:
    id: GHSA-pcjq-j3mq-jv5j
    created: 2026-01-16T20:02:11.524836688Z
review_status: UNREVIEWED

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions