GHSA-4pjc-pwgq-q9jp

Suggest an improvement
Source
https://github.com/advisories/GHSA-4pjc-pwgq-q9jp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-4pjc-pwgq-q9jp/GHSA-4pjc-pwgq-q9jp.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-4pjc-pwgq-q9jp
Aliases
Published
2024-12-11T18:44:47Z
Modified
2024-12-12T19:20:33Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
SiYuan has an SSTI via /api/template/renderSprig
Details

Summary

Siyuan's /api/template/renderSprig endpoint is vulnerable to Server-Side Template Injection (SSTI) through the Sprig template engine. Although the engine has limitations, it allows attackers to access environment variables

Impact

Information leakage

Database specific
{
    "nvd_published_at": "2024-12-12T02:15:32Z",
    "cwe_ids": [
        "CWE-1336"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-11T18:44:47Z"
}
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