All versions of the package github.com/usememos/memos/server prior to 0.11.0 are vulnerable to Cross-site Scripting (XSS) due to insufficient checks on external resources, which allows malicious actors to introduce links starting with a javascript: scheme.
References:- https://nvd.nist.gov/vuln/detail/CVE-2022-25978
- https://github.com/usememos/memos/issues/1026
- https://github.com/usememos/memos/commit/b11d2130a084385eb65c3761a3c841ebe9f81ae8
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUSEMEMOSMEMOSSERVER-3319070
- https://pkg.go.dev/vuln/GO-2023-1566
- https://github.com/advisories/GHSA-9w8x-5hv5-r6gw