{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.0.0-beta.1"
                  },
                  {
                    "last_affected": "5.0.0-beta.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "392c1742346d1dad77acba8d22e89a77ed009948"
            },
            {
              "last_affected": "0c9a7dd1405f71fc46ea97f87b6c4ae67a423df3"
            }
          ],
          "repo": "https://github.com/monicahq/monica",
          "type": "GIT"
        }
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-142257",
  "modified": "2026-12-02T17:46:01.536420722Z",
  "published": "2026-12-02T16:49:43.681Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Monica 5.0.0-beta.1 through 5.0.0-beta.5 Stored XSS via Document cdn_url"
}