{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7"
            },
            {
              "fixed": "2e91a612bbc1248e55b4f6061fc93fe459f977c1"
            }
          ],
          "repo": "https://github.com/prosemirror/prosemirror-view",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c8x8-7fp4-3x9w"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104847.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "1.42.3"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "ProseMirror's view component renders and manages the editable browser interface for ProseMirror documents. Prior to 1.42.3, prosemirror-view paste handling accepts attacker-provided HTML whose clipboard slice context contains attributes that are not passed through schema attribute validation. When a user pastes the crafted HTML into an editor, the unvalidated context attributes can construct content that executes attacker-controlled JavaScript in the browser window containing the editor. This issue is fixed in version 1.42.3.",
  "id": "CVE-2026-104847",
  "modified": "2026-10-04T02:30:58.100376554Z",
  "published": "2026-10-02T16:02:42.475Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104847.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ProseMirror/prosemirror-view/security/advisories/GHSA-c8x8-7fp4-3x9w"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104847"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ProseMirror/prosemirror-view/commit/20dc0a911a79f8fc6640dbbea5e7d68d3c4784b7"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ProseMirror/prosemirror-view/commit/2e91a612bbc1248e55b4f6061fc93fe459f977c1"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "ProseMirror: XSS vulnerability in prosemirror-view's paste handling"
}