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

Medium 5.4 Published Updated

Attackers can inject malicious JavaScript via links in Memos server, potentially executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-25978?

CVE-2022-25978 is a medium-severity cross-site scripting vulnerability in Usememos Memos, published on 15 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2022-25978?

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

PackageAffectedFixed in
github.com/usememos/memos GoAll versions0.10.4-0.20230211093429-b11d2130a084
github.com/usememos/memos GoAll versions0.10.4-0.20230211093429-b11d2130a084
github.com/usememos/memos GoAll versions0.10.4-0.20230211093429-b11d2130a084

Products include Usememos Memos.

How do I fix CVE-2022-25978?

Upgrade github.com/usememos/memos to 0.10.4-0.20230211093429-b11d2130a084 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-25978 being exploited?

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

All Usememos Memos vulnerabilities

Sources

Also known as GHSA-9w8x-5hv5-r6gw, GO-2023-1566.

Is CVE-2022-25978 in your software?

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

Check your SBOMs for free