Improper Neutralization of Special Elements Used in a Template Engine Affecting github.com/siyuan-note/siyuan/kernel/api package, versions <3.1.16-dev1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMSIYUANNOTESIYUANKERNELAPI-8499638
  • published12 Dec 2024
  • disclosed11 Dec 2024
  • creditElleuch-x1

Introduced: 11 Dec 2024

NewCVE-2024-55660  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade github.com/siyuan-note/siyuan/kernel/api to version 3.1.16-dev1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the /api/template/renderSprig endpoint due to improper sanitization. An attacker can access environment variables by exploiting the Sprig template engine, despite its limitations.

References

CVSS Scores

version 4.0
version 3.1