# CVE-2022-25978: Cross Site Scripting in usememos/memos

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-02-15T05:00:01.227Z
- Modified: 2026-06-17T04:34:32.803Z
- Also known as: GHSA-9w8x-5hv5-r6gw, GO-2023-1566
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

All versions of the package github.com/usememos/memos/server 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.

(As written by CVE List.)

## Affected

- github.com/usememos/memos/server: before *
- github.com/usememos/memos (Go): before 0.10.4-0.20230211093429-b11d2130a084
- usememos memos: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUSEMEMOSMEMOSSERVER-3319070> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/usememos/memos/issues/1026> (exploit, report, web)
- <https://github.com/usememos/memos/commit/b11d2130a084385eb65c3761a3c841ebe9f81ae8> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25978> (advisory)
- <https://pkg.go.dev/vuln/GO-2023-1566> (web)

## Sources

- CVE List: [CVE-2022-25978](https://www.cve.org/CVERecord?id=CVE-2022-25978), CVE Terms of Use, modified 2025-03-18
- GitHub Advisory Database: [GHSA-9w8x-5hv5-r6gw](https://github.com/advisories/GHSA-9w8x-5hv5-r6gw), CC-BY-4.0, modified 2025-03-19
- Go Vulnerability Database: [GO-2023-1566](https://pkg.go.dev/vuln/GO-2023-1566), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-25978](https://nvd.nist.gov/vuln/detail/CVE-2022-25978), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25978 · Whole record: https://cve.day/CVE-2022-25978.json · Rebuilt by cve.day 2026-11-25T22:58:18.654Z
