{"id":"CVE-2026-142257","summary":"Monica 5.0.0-beta.1 through 5.0.0-beta.5 Stored XSS via Document cdn_url","details":"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.","modified":"2026-12-02T18:00:38.029944778Z","published":"2026-12-02T16:49:43.681Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142257.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142257.json"},{"type":"PACKAGE","url":"https://github.com/monicahq/monica"},{"type":"ARTICLE","url":"https://github.com/monicahq/monica/blob/v5.0.0-beta.5/app/Domains/Contact/ManageDocuments/Services/UploadFile.php#L18-L32"},{"type":"ARTICLE","url":"https://github.com/monicahq/monica/blob/v5.0.0-beta.5/app/Domains/Contact/ManageDocuments/Web/ViewHelpers/ModuleDocumentsViewHelper.php#L40-L45"},{"type":"ARTICLE","url":"https://github.com/monicahq/monica/blob/v5.0.0-beta.5/resources/js/Shared/Modules/Documents.vue#L55"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142257"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/monica-5.0.0-beta.1-through-5.0.0-beta.5-stored-xss-via-document-cdn-url"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/monicahq/monica","events":[{"introduced":"392c1742346d1dad77acba8d22e89a77ed009948"},{"last_affected":"0c9a7dd1405f71fc46ea97f87b6c4ae67a423df3"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"5.0.0-beta.1"},{"last_affected":"5.0.0-beta.5"}],"source":"AFFECTED_FIELD"}]}}],"versions":["v5.0.0-beta.5","v5.0.0-beta.4","v5.0.0-beta.3","v5.0.0-beta.2","v5.0.0-beta.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142257.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"}]}