AploSec / Disclosures / CVE-2026-142257
Monica 5.0.0-beta.1 through 5.0.0-beta.5 Stored XSS via Document cdn_url
CVE-2026-142257 · published 2026-12-02
In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). No fixed release is listed yet.
Summary
CVE-2026-142257 affects Monica (Server) >= 5.0.0-beta.1, <= 5.0.0-beta.5: Stored XSS via Document cdn_url (CWE-79). No fixed release is listed. CVSS 4.0 base score 5.1 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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 cdn_url 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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/monica-5.0.0-beta.1-through-5.0.0-beta.5-stored-xss-via-document-cdn-url
- Vulnerable codehttps://github.com/monicahq/monica/blob/v5.0.0-beta.5/app/Domains/Contact/ManageDocuments/Services/UploadFile.php#L18-L32
- Vulnerable codehttps://github.com/monicahq/monica/blob/v5.0.0-beta.5/app/Domains/Contact/ManageDocuments/Web/ViewHelpers/ModuleDocumentsViewHelper.php#L40-L45
- Vulnerable codehttps://github.com/monicahq/monica/blob/v5.0.0-beta.5/resources/js/Shared/Modules/Documents.vue#L55
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142257
- Severity
- Medium 5.1CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- Monica
- Ecosystem
- Server
- Affected
- >= 5.0.0-beta.1, <= 5.0.0-beta.5
- Fixed
- None
- Weakness
- CWE-79
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder