Arbitrary DOM attributes in element.attributes and leaf.attributes in Platejs
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 or element and does not later override href or src will be vulnerable to XSS. In patched versions of Plate, we have
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-47061
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:09 UTC · Revision 1
Source evidence
Arbitrary DOM attributes in element.attributes and leaf.attributes in Platejs
core-osv · Original sourcePublished 20 Sept 2024, 19:04 UTC
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 or element and does not later override href or src will be vulnerable to XSS. In patched versions of Plate, we have
osv:CVE-2024-47061
Complete source record
{
"id": "9d0b3c8d5d1f59bda8f36a184365c8d730f07e951b92116a05e7944c41ad5606",
"url": "https://osv.dev/vulnerability/CVE-2024-47061",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Arbitrary DOM attributes in element.attributes and leaf.attributes in Platejs",
"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 or element and does not later override href or src will be vulnerable to XSS. In patched versions of Plate, we have",
"evidence": "osv:CVE-2024-47061",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-47061",
"aliases": [
"CVE-2024-47061",
"GHSA-73rg-f94j-xvhx"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/udecode/plate",
"type": "GIT",
"events": [
{
"introduced": "0bfad50855e731640470d878013f9ce1620858b0"
},
{
"fixed": "a1002ddd6a5dfe35bdf2be50cef02f459cd59911"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "37.0.0"
},
{
"fixed": "38.0.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
}
],
"versions": [
"@udecode/plate@38.0.5",
"@udecode/plate-table@38.0.5",
"@udecode/plate-docx@38.0.5",
"@udecode/plate-csv@38.0.5",
"@udecode/slate@38.0.4",
"@udecode/slate-utils@38.0.4",
"@udecode/slate-react@38.0.4",
"@udecode/plate@38.0.4",
"@udecode/plate-utils@38.0.4",
"@udecode/plate-core@38.0.4",
"@udecode/plate-common@38.0.4",
"@udecode/slate@38.0.3",
"@udecode/slate-utils@38.0.3",
"@udecode/slate-react@38.0.3",
"@udecode/plate@38.0.3",
"@udecode/plate-utils@38.0.3",
"@udecode/plate-core@38.0.3",
"@udecode/plate-common@38.0.3",
"@udecode/plate@38.0.2",
"@udecode/plate-utils@38.0.2",
"@udecode/plate-core@38.0.2",
"@udecode/plate-common@38.0.2",
"@udecode/plate-core@38.0.1",
"@udecode/plate@38.0.0",
"@udecode/plate-yjs@38.0.0",
"@udecode/plate-utils@38.0.0",
"@udecode/plate-trailing-block@38.0.0",
"@udecode/plate-toggle@38.0.0",
"@udecode/plate-table@38.0.0",
"@udecode/plate-tabbable@38.0.0",
"@udecode/plate-suggestion@38.0.0",
"@udecode/plate-slash-command@38.0.0",
"@udecode/plate-selection@38.0.0",
"@udecode/plate-select@38.0.0",
"@udecode/plate-resizable@38.0.0",
"@udecode/plate-reset-node@38.0.0",
"@udecode/plate-playwright@38.0.0",
"@udecode/plate-normalizers@38.0.0",
"@udecode/plate-node-id@38.0.0",
"@udecode/plate-mention@38.0.0",
"@udecode/plate-media@38.0.0",
"@udecode/plate-math@38.0.0",
"@udecode/plate-markdown@38.0.0",
"@udecode/plate-list@38.0.0",
"@udecode/plate-link@38.0.0",
"@udecode/plate-line-height@38.0.0",
"@udecode/plate-layout@38.0.0",
"@udecode/plate-kbd@38.0.0",
"@udecode/plate-juice@38.0.0",
"@udecode/plate-indent@38.0.0",
"@udecode/plate-indent-list@38.0.0",
"@udecode/plate-html@38.0.0",
"@udecode/plate-horizontal-rule@38.0.0",
"@udecode/plate-highlight@38.0.0",
"@udecode/plate-heading@38.0.0",
"@udecode/plate-font@38.0.0",
"@udecode/plate-floating@38.0.0",
"@udecode/plate-find-replace@38.0.0",
"@udecode/plate-excalidraw@38.0.0",
"@udecode/plate-emoji@38.0.0",
"@udecode/plate-docx@38.0.0",
"@udecode/plate-dnd@38.0.0",
"@udecode/plate-diff@38.0.0",
"@udecode/plate-date@38.0.0",
"@udecode/plate-cursor@38.0.0",
"@udecode/plate-csv@38.0.0",
"@udecode/plate-core@38.0.0",
"@udecode/plate-common@38.0.0",
"@udecode/plate-comments@38.0.0",
"@udecode/plate-combobox@38.0.0",
"@udecode/plate-code-block@38.0.0",
"@udecode/plate-cloud@38.0.0",
"@udecode/plate-caption@38.0.0",
"@udecode/plate-callout@38.0.0",
"@udecode/plate-break@38.0.0",
"@udecode/plate-block-quote@38.0.0",
"@udecode/plate-basic-marks@38.0.0",
"@udecode/plate-basic-elements@38.0.0",
"@udecode/plate-autoformat@38.0.0",
"@udecode/plate-alignment@38.0.0",
"@udecode/plate-test-utils@37.0.9",
"@udecode/plate@37.0.8",
"@udecode/plate-utils@37.0.8",
"@udecode/plate-core@37.0.8",
"@udecode/plate-common@37.0.8",
"@udecode/plate@37.0.7",
"@udecode/plate-utils@37.0.7",
"@udecode/plate-core@37.0.7",
"@udecode/plate-common@37.0.7",
"@udecode/plate@37.0.6",
"@udecode/plate-selection@37.0.6",
"@udecode/plate@37.0.5",
"@udecode/plate-utils@37.0.5",
"@udecode/plate-core@37.0.5",
"@udecode/plate-common@37.0.5",
"@udecode/plate@37.0.4",
"@udecode/plate-utils@37.0.4",
"@udecode/plate-core@37.0.4",
"@udecode/plate-common@37.0.4",
"@udecode/plate@37.0.3",
"@udecode/plate-utils@37.0.3",
"@udecode/plate-link@37.0.3",
"@udecode/plate-floating@37.0.3",
"@udecode/plate-core@37.0.3",
"@udecode/plate-common@37.0.3",
"@udecode/plate@37.0.2",
"@udecode/plate-block-quote@37.0.2",
"@udecode/plate-basic-elements@37.0.2",
"@udecode/plate-caption@37.0.1",
"@udecode/utils@37.0.0",
"@udecode/slate@37.0.0",
"@udecode/slate-utils@37.0.0",
"@udecode/slate-react@37.0.0",
"@udecode/react-utils@37.0.0",
"@udecode/react-hotkeys@37.0.0",
"@udecode/plate@37.0.0",
"@udecode/plate-yjs@37.0.0",
"@udecode/plate-utils@37.0.0",
"@udecode/plate-trailing-block@37.0.0",
"@udecode/plate-toggle@37.0.0",
"@udecode/plate-test-utils@37.0.0",
"@udecode/plate-table@37.0.0",
"@udecode/plate-tabbable@37.0.0",
"@udecode/plate-suggestion@37.0.0",
"@udecode/plate-slash-command@37.0.0",
"@udecode/plate-selection@37.0.0",
"@udecode/plate-select@37.0.0",
"@udecode/plate-resizable@37.0.0",
"@udecode/plate-reset-node@37.0.0",
"@udecode/plate-playwright@37.0.0",
"@udecode/plate-normalizers@37.0.0",
"@udecode/plate-node-id@37.0.0",
"@udecode/plate-mention@37.0.0",
"@udecode/plate-media@37.0.0",
"@udecode/plate-math@37.0.0",
"@udecode/plate-markdown@37.0.0",
"@udecode/plate-list@37.0.0",
"@udecode/plate-link@37.0.0",
"@udecode/plate-line-height@37.0.0",
"@udecode/plate-layout@37.0.0",
"@udecode/plate-kbd@37.0.0",
"@udecode/plate-juice@37.0.0",
"@udecode/plate-indent@37.0.0",
"@udecode/plate-indent-list@37.0.0",
"@udecode/plate-html@37.0.0",
"@udecode/plate-horizontal-rule@37.0.0",
"@udecode/plate-highlight@37.0.0",
"@udecode/plate-heading@37.0.0",
"@udecode/plate-font@37.0.0",
"@udecode/plate-floating@37.0.0",
"@udecode/plate-find-replace@37.0.0",
"@udecode/plate-excalidraw@37.0.0",
"@udecode/plate-emoji@37.0.0",
"@udecode/plate-docx@37.0.0",
"@udecode/plate-dnd@37.0.0",
"@udecode/plate-diff@37.0.0",
"@udecode/plate-date@37.0.0",
"@udecode/plate-cursor@37.0.0",
"@udecode/plate-csv@37.0.0",
"@udecode/plate-core@37.0.0",
"@udecode/plate-common@37.0.0",
"@udecode/plate-comments@37.0.0",
"@udecode/plate-combobox@37.0.0",
"@udecode/plate-code-block@37.0.0",
"@udecode/plate-cloud@37.0.0",
"@udecode/plate-caption@37.0.0",
"@udecode/plate-callout@37.0.0",
"@udecode/plate-break@37.0.0",
"@udecode/plate-block-quote@37.0.0",
"@udecode/plate-basic-marks@37.0.0",
"@udecode/plate-basic-elements@37.0.0",
"@udecode/plate-autoformat@37.0.0",
"@udecode/plate-alignment@37.0.0",
"@udecode/cn@37.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47061.json"
}
}
],
"modified": "2026-10-28T02:30:21.815764375Z",
"provider": "osv",
"references": [
"https://www.npmjs.com/package/patch-package",
"https://yarnpkg.com/cli/patch",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47061.json",
"https://github.com/udecode/plate/security/advisories/GHSA-73rg-f94j-xvhx",
"https://nvd.nist.gov/vuln/detail/CVE-2024-47061"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "22.0.0"
},
{
"fixed": "36.5.9"
},
{
"fixed": "21.5.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47061.json"
}
},
"related_cves": [
{
"value": "CVE-2024-47061",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488126,
"published_at": "2024-09-20T19:04:01.81+00:00"
}