# CVE-2024-47061: Arbitrary DOM attributes in element.attributes and leaf.attributes in Platejs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **CVSS:** 8.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.95% (percentile 60, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-73rg-f94j-xvhx
- **Published:** 2024-09-20T14:41:02.000Z
- **Modified:** 2026-06-17T07:56:28.383Z

## Who should check

- Projects that depend on npm package @udecode/plate-core (\>= 37.0.0, \< 38.0.6)
- Anyone running udecode plate \>= 37.0.0, \< 38.0.6; \>= 22.0.0, \< 36.5.9; \< 21.5.1

## Description

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.

## Affected and fixed versions

- npm `@udecode/plate-core`: affected \>= 37.0.0, \< 38.0.6; fixed 38.0.6, 36.5.9, 21.5.1 (osv)
- udecode plate: \>= 37.0.0, \< 38.0.6; \>= 22.0.0, \< 36.5.9; \< 21.5.1 (cvelist)

## Mitigation

- Upgrade @udecode/plate-core to one of 38.0.6, 36.5.9, 21.5.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-47061. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-47061.md
Affected: @udecode/plate-core >= 37.0.0, < 38.0.6
Fixed in: 38.0.6, 36.5.9, 21.5.1

Steps:
1. Search this machine and project for @udecode/plate-core (npm), udecode plate: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-47061 being exploited?

There is no confirmed exploitation: CVE-2024-47061 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.95% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-47061?

High: CVSS 8.3 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-47061?

@udecode/plate-core \>= 37.0.0, \< 38.0.6.

### Is there a fix for CVE-2024-47061?

Yes. Fixed in 38.0.6, 36.5.9, 21.5.1. Upgrade @udecode/plate-core to one of 38.0.6, 36.5.9, 21.5.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-47061?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/udecode/plate/security/advisories/GHSA-73rg-f94j-xvhx>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-47061>
- patch: <https://github.com/udecode/plate/commit/16df6074edac22d56c60e0283eae0740230401c9>
- other: <https://www.npmjs.com/package/patch-package>
- other: <https://yarnpkg.com/cli/patch>
- other: <https://github.com/udecode/plate>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-47061>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-73rg-f94j-xvhx> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-47061> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-47061>
