Home / udecode / plate / CVE-2024-40631
CVE-2024-40631: is it exploited, and which versions of udecode plate are affected and fixed?
CVE-2024-40631 is a cross-site scripting (XSS) vulnerability in udecode plate. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: @udecode/plate-media before 36.0.10 (GitHub advisory GHSA-h3pq-667x-r789). Fixed in 36.0.10 (GitHub advisory GHSA-h3pq-667x-r789). Severity: High (8.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:28 UTC.
What is CVE-2024-40631?
Cross-site Scripting (XSS) in media embed element when using custom URL parsers in plate media
Plate media is an open source, rich-text editor for React. Editors that use `MediaEmbedElement` and pass custom `urlParsers` to the `useMediaState` hook may be vulnerable to XSS if a custom parser allows `javascript:`, `data:` or `vbscript:` URLs to be embedded. Editors that do not use `urlParsers` and consume the `url` property directly may also be vulnerable if the URL is not sanitised. The default parsers `parseTwitterUrl` and `parseVideoUrl` are not affected. `@udecode/plate-media` 36.0.10 resolves this issue by only allowing HTTP and HTTPS URLs during parsing. This affects only the `embed` property returned from `useMediaState`. In addition, the `url` property returned from `useMediaState` has been renamed to `unsafeUrl` to indicate that it has not been sanitised. The `url` property on `element` is also unsafe, but has not been renamed. If you're using either of these properties directly, you will still need to validate the URL yourself. Users are advised to upgrade. Users unable to upgrade should ensure that any custom `urlParsers` do not allow `javascript:`, `data:` or `vbscript:` URLs to be returned in the `url` property of their return values. If `url` is consumed directly, validate the URL protocol before passing it to the `iframe` element.
From the CVE record by GitHub_M, last updated August 2, 2024, 04:33 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| udecode | plate | < 36.0.10 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @udecode/plate-media | < 36.0.10 | 36.0.10 | GHSA-h3pq-667x-r789 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 15, 2024. Summary: Plate media plugins has a XSS in media embed element when using custom URL parsers.
How severe is CVE-2024-40631?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-40631 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 19, 2024)
- EPSS
- 0.50% probability of exploitation activity in the next 30 days, percentile 44.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/udecode/plate/security/advisories/GHSA-h3pq-667x-r789 x_refsource_CONFIRM
- https://github.com/udecode/plate/commit/1bc0971774fbfb770780c9bdb94746a6f0f196a0 x_refsource_MISC
- https://stackoverflow.com/a/43467144 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 8, 2024
- Published
- July 15, 2024, 18:21 UTC
- CVE record updated
- August 2, 2024, 04:33 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:46 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:28 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect plate?
- Sep 16, 2026CVE-2026-88976 udecode plate: cross-site scripting (XSS)
- Aug 20, 2026CVE-2026-65842 udecode plate: server-side request forgery (SSRF)
- Jul 8, 2026CVE-2026-55596 udecode plate: cross-site scripting (XSS)
- Sep 20, 2024CVE-2024-47061 udecode plate: cross-site scripting (XSS)
- Jun 9, 2023CVE-2023-34245 udecode plate: cross-site scripting (XSS)
Questions about CVE-2024-40631
Is CVE-2024-40631 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.50% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of udecode plate are affected by CVE-2024-40631?
@udecode/plate-media before 36.0.10, per the GitHub advisory GHSA-h3pq-667x-r789. The tables above give every range the sources list.
Which version fixes CVE-2024-40631?
36.0.10, per the GitHub advisory GHSA-h3pq-667x-r789. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-40631?
High (8.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-40631?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.