CVE-2025-25187 Cross-site Scripting in Goto Anything allows arbitrary code execution in Joplin

High 7.8 Published Updated

Attackers can execute arbitrary code via XSS in Joplin's search feature due to unsanitized HTML and enabled node integration.

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
None listed

What is CVE-2025-25187?

CVE-2025-25187 is a high-severity cross-site scripting vulnerability in laurent22 joplin, published on 7 Feb 2025. 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

Joplin is a free, open source note taking and to-do application, which can handle a large number of notes organised into notebooks. This vulnerability is caused by adding note titles to the document using React's `dangerouslySetInnerHTML`, without first escaping HTML entities. Joplin lacks a Content-Security-Policy with a restrictive `script-src`. This allows arbitrary JavaScript execution via inline `onclick`/`onload` event handlers in unsanitized HTML. Additionally, Joplin's main window is created with `nodeIntegration` set to `true`, allowing arbitrary JavaScript execution to result in arbitrary code execution. Anyone who 1) receives notes from unknown sources and 2) uses <kbd>ctrl</kbd>-<kbd>p</kbd> to search is impacted. This issue has been addressed in version 3.1.24 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2025-25187?

It affects 1 product.

Products include Joplin Project Joplin.

How do I fix CVE-2025-25187?

No fix has been published for CVE-2025-25187 yet. Limit exposure of the affected software until one is available.

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-2025-25187 being exploited?

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

Sources

Also known as GHSA-9gfv-q6wj-fr3c.

Is CVE-2025-25187 in your software?

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

Check your SBOMs for free