
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-36036 affects mdx-mermaid, a package that provides plug and play access to Mermaid in MDX. The vulnerability was discovered and disclosed in August 2022, affecting versions less than 1.3.0 and 2.0.0-rc1. This security issue allows for potential arbitrary JavaScript injection through mermaid code blocks (NVD).
The vulnerability is classified as an Improper Control of Generation of Code (Code Injection) with a CVSS v3.1 base score of 3.6 (Low severity). The attack vector is Local (AV:L), with High attack complexity (AC:H), requiring Low privileges (PR:L), and No user interaction (UI:N). The scope is Unchanged (S:U) with Low impacts on both Confidentiality (C:L) and Integrity (I:L), and No impact on Availability (A:N) (GitHub Advisory).
The vulnerability allows attackers to inject and execute arbitrary JavaScript code when the component is loaded by MDXjs. This can be achieved by modifying mermaid code blocks with malicious JavaScript code that executes upon component loading (GitHub Advisory).
The vulnerability has been patched in versions 1.3.0 and 2.0.0-rc2. No known workarounds are available for affected versions. Users are advised to upgrade to the patched versions (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."