GHSA-fqj6-whhx-47p7

Suggest an improvement
Source
https://github.com/advisories/GHSA-fqj6-whhx-47p7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-fqj6-whhx-47p7/GHSA-fqj6-whhx-47p7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fqj6-whhx-47p7
Aliases
Published
2024-12-11T18:44:49Z
Modified
2024-12-12T19:20:10Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
SiYuan has an arbitrary file write in the host via /api/asset/upload
Details

Summary

The /api/asset/upload endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored XSS (via the file write).

Impact

Arbitrary file write

Database specific
{
    "nvd_published_at": "2024-12-12T02:15:32Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-11T18:44:49Z"
}
References

Affected packages

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

Package

Name
github.com/siyuan-note/siyuan/kernel
View open source insights on deps.dev
Purl
pkg:golang/github.com/siyuan-note/siyuan/kernel

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.0.0-20241210012039-5129ad926a21