CVE-2024-40631
Last modified
CVE-2024-40631 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-40631?
How severe is CVE-2024-40631?
How do I fix CVE-2024-40631?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-40626Outline is an open source, collaborative document editor. A …5.4
- CVE-2024-40627Fastapi OPA is an opensource fastapi middleware which includ…5.8
- CVE-2024-40628JumpServer is an open-source Privileged Access Management (P…9.1
- CVE-2024-40629JumpServer is an open-source Privileged Access Management (P…9.8
- CVE-2024-4063A vulnerability was found in EZVIZ CS-C6-21WFR-8 5.2.7 Build…3.7
- CVE-2024-40630OpenImageIO is a toolset for reading, writing, and manipulat…4.3
- CVE-2024-40632Linkerd is an open source, ultralight, security-first servic…3.7
- CVE-2024-40633Sylius is an Open Source eCommerce Framework on Symfony. A s…5.3
- CVE-2024-40634Argo CD is a declarative, GitOps continuous delivery tool fo…7.5
- CVE-2024-40635containerd is an open-source container runtime. A bug was fo…7.8
- CVE-2024-40636Steeltoe is an open source project that provides a collectio…5.3
- CVE-2024-40637dbt enables data analysts and engineers to transform their d…7.8
Are you affected by CVE-2024-40631?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
