Arbitrary DOM attributes in element.attributes and leaf.attributes in Platejs
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
Plate is a javascript toolkit that makes it easier for you to develop with Slate, a popular framework for building text editors. One longstanding feature of Plate is the ability to add custom DOM attributes to any element or leaf using the `attributes` property. These attributes are passed to the node component using the `nodeProps` prop. It has come to our attention that this feature can be used for malicious purposes, including cross-site scripting (XSS) and information exposure (specifically, users' IP addresses and whether or not they have opened a malicious document). Note that the risk of information exposure via attributes is only relevant to applications in which web requests to arbitrary URLs are not ordinarily allowed. Plate editors that allow users to embed images from arbitrary URLs, for example, already carry the risk of leaking users' IP addresses to third parties. All Plate editors using an affected version of @udecode/plate-core are vulnerable to these information exposure attacks via the style attribute and other attributes that can cause web requests to be sent. In addition, whether or not a Plate editor is vulnerable to cross-site scripting attacks using attributes depends on a number of factors. The most likely DOM attributes to be vulnerable are href and src on links and iframes respectively. Any component that spreads {...nodeProps} onto an <a> or <iframe> element and does not later override href or src will be vulnerable to XSS. In patched versions of Plate, we have disabled element.attributes and leaf.attributes for most attribute names by default, with some exceptions including target, alt, width, height, colspan and rowspan on the link, image, video, table cell and table header cell plugins. If this is a breaking change for you, you can selectively re-enable attributes for certain plugins as follows. Please carefully research and assess the security implications of any attribute you allow, as even seemingly innocuous attributes such as style can be used maliciously. If you are unable to upgrade to any of the patched versions, you should use a tool like patch-package or yarn patch to remove the logic from @udecode/plate-core that adds attributes to nodeProps.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| udecode | plate | 37.0.0 to before 38.0.6; 22.0.0 to before 36.5.9; before 21.5.1 | 38.0.6, 36.5.9, 21.5.1 | Patch available | CNA |
| — | @udecode/plate-core (npm) | 37.0.0 to before 38.0.6 | 38.0.6 | Patch available | GHSA-73rg-f94j-xvhx |
| — | @udecode/plate-core (npm) | 22.0.0 to before 36.5.9 | 36.5.9 | Patch available | GHSA-73rg-f94j-xvhx |
| — | @udecode/plate-core (npm) | before 21.5.1 | 21.5.1 | Patch available | GHSA-73rg-f94j-xvhx |
- plate Vendorudecode Affected 37.0.0 to before 38.0.6; 22.0.0 to before 36.5.9; before 21.5.1 Fixed in 38.0.6, 36.5.9, 21.5.1 Patch available CNA
- @udecode/plate-core (npm) Vendor— Affected 37.0.0 to before 38.0.6 Fixed in 38.0.6 Patch available GHSA-73rg-f94j-xvhx
- @udecode/plate-core (npm) Vendor— Affected 22.0.0 to before 36.5.9 Fixed in 36.5.9 Patch available GHSA-73rg-f94j-xvhx
- @udecode/plate-core (npm) Vendor— Affected before 21.5.1 Fixed in 21.5.1 Patch available GHSA-73rg-f94j-xvhx
Remediation
- Fix · CNA plate (udecode) Fixed in 38.0.6, 36.5.9, 21.5.1
- Fix · GHSA-73rg-f94j-xvhx @udecode/plate-core (npm) Fixed in 38.0.6 Advisory →
- Fix · GHSA-73rg-f94j-xvhx @udecode/plate-core (npm) Fixed in 36.5.9 Advisory →
- Fix · GHSA-73rg-f94j-xvhx @udecode/plate-core (npm) Fixed in 21.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-47061
- 2026-10-03 Alias added: GHSA-73rg-f94j-xvhx
References
More udecode vulnerabilities
- TI-2026-40133 Plate: Media embed provider metadata can bypass URL sanitization and execute iframe JavaScript CVSS 3.1HIGH 8.7
- TI-2026-46915 Plate: SSRF with response disclosure in DOCX image embedding CVSS 3.1HIGH 8.2
- TI-2023-17081 Cross site scripting (XSS) in @udecode/plate-link CVSS 3.1HIGH 8.1
- TI-2024-27043 Cross-site Scripting (XSS) in media embed element when using custom URL parsers in plate media CVSS 3.1HIGH 8.1
- TI-2026-60308 @platejs/core HTML deserialization can trigger browser behavior during parsing CVSS 3.1MEDIUM 6.1
Sources
- CVE-2024-47061 · CVE Program
- CVE-2024-47061 · NVD
- FIRST EPSS
- GHSA-73rg-f94j-xvhx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences