CVE-2024-40631
JavaScript vulnerability analysis and mitigation

Overview

Plate media, an open source rich-text editor for React, contains a cross-site scripting (XSS) vulnerability in versions prior to 36.0.10. The vulnerability affects editors that use MediaEmbedElement and pass custom urlParsers to the useMediaState hook, or directly consume the url property without sanitization. The vulnerability was discovered and disclosed on July 15, 2024 (GitHub Advisory).

Technical details

The vulnerability occurs when custom parsers allow javascript:, data: or vbscript: URLs to be embedded through the useMediaState hook. The default parsers parseTwitterUrl and parseVideoUrl are not affected. The issue has been assigned a CVSS v3.1 score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, indicating high impact on confidentiality and integrity (GitHub Advisory).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code through XSS attacks when malicious URLs are processed by the editor. This could lead to unauthorized access to sensitive information or manipulation of web content (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 36.0.10 of @udecode/plate-media by restricting URL parsing to only allow HTTP and HTTPS protocols. For users unable to upgrade, it is recommended to ensure that custom urlParsers do not allow javascript:, data: or vbscript: URLs in their return values. Additionally, if consuming the url property directly, validate the URL protocol before passing it to the iframe element (GitHub Advisory, Fortiguard).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management