{"id":"CVE-2023-34245","published":"2023-06-09T17:04:23Z","modified":"2025-01-06T18:13:51Z","title":"Cross site scripting (XSS) in @udecode/plate-link","vendor":"udecode","product":"plate","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00445,"percentile":0.39563,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":7.91},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"udecode","affectedVersions":[{"vendor":"udecode","product":"plate","versions":["< 20.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-01-06T18:13:42.600551Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@udecode/plate-link","vulnerableRanges":["<20.0.0"],"patched":["20.0.0"],"from":["GHSA-4882-hxpr-hrvm"],"provenance":"source"}],"summary":{"text":"The @udecode/plate-link package, the link handler for the udecode/plate rich-text editor plugin system for Slate and React, does not sanitize URLs against the javascript: scheme in affected versions of the link plugin and link UI component. An attacker who can get a link with a JavaScript URL into the editor, for example by convincing a user to open or paste malicious content, can trigger script execution when the link is used, requiring network access and user interaction with no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:56Z"},"euvd":{"id":"EUVD-2023-1682","exploited":false,"provenance":"source"}}