{"id":"CVE-2023-34245","aliases":["CVE-2023-34245","GHSA-4882-hxpr-hrvm"],"related":[],"kind":"vulnerability","state":"published","title":"Cross site scripting (XSS) in @udecode/plate-link","summary":"@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate & React. Affected versions of the link plugin and link UI component do not sanitize URLs to prevent use of the `javascript:` scheme. As a result, links with JavaScript URLs can be inserted into the Plate editor through various means, including opening or pasting malicious content. `@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `['http', 'https', 'mailto', 'tel']`. URLs using a scheme that isn't in this list will not be rendered to the DOM. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate & React. Affected versions of the link plugin and link UI component do not sanitize URLs to prevent use of the `javascript:` scheme. As a result, links with JavaScript URLs can be inserted into the Plate editor through various means, including opening or pasting malicious content. `@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `['http', 'https', 'mailto', 'tel']`. URLs using a scheme that isn't in this list will not be rendered to the DOM. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements.","source":"cvelist"},{"lang":"en","text":"### Impact\nAffected versions of the link plugin and link UI component do not sanitize URLs to prevent use of the `javascript:` scheme. As a result, links with JavaScript URLs can be inserted into the Plate editor through various means, including opening or pasting malicious content.\n\n### Patches\n`@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `['http', 'https', 'mailto', 'tel']`. URLs using a scheme that isn't in this list will not be rendered to the DOM.\n\n### Workarounds\nIf you are unable to update `@udecode/plate-link` to version 20.0.0, we recommend overriding the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements.","format":"markdown","source":"ghsa"}],"published":"2023-06-09T17:04:23.815Z","modified":"2026-09-10T03:50:01.851Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 20.0.0","status":"affected"}],"vendor":"udecode","product":"plate","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"20.0.0"}],"ecosystem":"npm","package":"@udecode/plate-link","purl":"pkg:npm/%40udecode/plate-link","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"20.0.0"}],"vendor":"udecode","product":"plate","cpe":"cpe:2.3:a:udecode:plate:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34245","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/udecode/plate/pull/2240","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/udecode/plate","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-01-06T18:13:42.600Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-34245","url":"https://www.cve.org/CVERecord?id=CVE-2023-34245","licence":"CVE Terms of Use","modified":"2025-01-06T18:13:51.501Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4882-hxpr-hrvm","url":"https://github.com/advisories/GHSA-4882-hxpr-hrvm","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:01.851Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-34245","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34245","licence":"Public domain","modified":"2026-06-17T06:03:12.770Z"}],"updatedAt":"2026-11-25T22:58:24.725Z","epss":{"score":0.00445,"percentile":0.40429,"date":"2026-12-01T12:00:22.000Z"}}