CVE-2022-36036
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

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