{"id":"CVE-2023-34245","state":"PUBLISHED","title":"Cross site scripting (XSS) in @udecode/plate-link","description":"@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.","publishedAt":"2023-06-09T17:04:23.815Z","updatedAt":"2025-01-06T18:13:51.501Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["udecode plate"],"affected":[{"vendor":"udecode","product":"plate","versions":[{"version":"< 20.0.0","status":"affected"}]}],"references":["https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:06:00.499Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/34xxx/CVE-2023-34245.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-34245","state":"PUBLISHED","datePublished":"2023-06-09T17:04:23.815Z","dateUpdated":"2025-01-06T18:13:51.501Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-05-31T13:51:51.173Z"},"containers":{"cna":{"title":"Cross site scripting (XSS) in @udecode/plate-link","descriptions":[{"lang":"en","value":"@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."}],"affected":[{"vendor":"udecode","product":"plate","versions":[{"version":"< 20.0.0","status":"affected"}]}],"references":[{"url":"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","name":"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7","name":"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-06-09T17:04:23.815Z"},"source":{"advisory":"GHSA-4882-hxpr-hrvm","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","name":"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7","name":"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T16:01:54.346Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-06T18:13:42.600551Z","id":"CVE-2023-34245","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-06T18:13:51.501Z"}}]}}}