CVE-2022-4839 Cross-site Scripting (XSS) - Stored in usememos/memos

High 8.0 Published Updated

Attackers can inject malicious scripts into memos, potentially stealing user sessions or executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-4839?

CVE-2022-4839 is a high-severity cross-site scripting vulnerability in Usememos Memos, published on 29 Dec 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-79

Which versions are affected by CVE-2022-4839?

2 open source packages ship an affected version, including github.com/usememos/memos. It affects 1 product.

PackageAffectedFixed in
github.com/usememos/memos GoAll versions0.9.1
github.com/usememos/memos GoAll versions0.9.1

Products include Usememos Memos.

How do I fix CVE-2022-4839?

Upgrade github.com/usememos/memos to 0.9.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-4839 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4839 exists.

All Usememos Memos vulnerabilities

Sources

Also known as GHSA-gxqf-4g4p-q3hc.

Is CVE-2022-4839 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free