CVE-2026-142257: Monica 5.0.0-beta.1 through 5.0.0-beta.5 Stored XSS via Document cdn_url
Monica 5.0.0-beta.1 through 5.0.0-beta.5 contains a stored cross-site scripting vulnerability that allows authenticated vault editors to inject scripts by storing javascript: URLs as a contact document's cdnurl when Uploadcare storage is configured. When another vault member, including view-only members, clicks the Download link rendered by Documents.vue, the script runs in the Monica origin with that member's session.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Vault members who click a document Download link are exposed, including members with view-only access. Exploitation requires the affected vault to use Uploadcare storage and for an authenticated vault editor to have stored a malicious document URL.
What does an attacker need to exploit it?
The attacker needs authenticated vault-editor privileges and must be able to set a contact document's cdn_url to a javascript: URL. A separate vault member must then click the rendered Download link for the script to execute in that member's Monica session.
Are default deployments affected?
The issue is described only when Uploadcare storage is configured. The provided information does not establish that deployments using other storage configurations are affected.
What can be done if patching is not immediately possible?
Restrict vault-editor access to trusted users and avoid clicking Download links for untrusted contact documents. Review stored contact document cdn_url values for javascript: URLs, particularly in vaults where Uploadcare storage is configured.
How can I determine whether my instance is affected?
Check whether the instance runs Monica 5.0.0-beta.1 through 5.0.0-beta.5 and has Uploadcare storage configured. Then inspect contact document cdn_url values for javascript: URLs, as those can execute when a vault member selects Download.