CVE-2022-36036
There is a potential for an arbitrary javascript injection in versions less than 1.3.0 and 2.0.0-rc1.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.40%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
mdx-mermaid provides plug and play access to Mermaid in MDX. There is a potential for an arbitrary javascript injection in versions less than 1.3.0 and 2.0.0-rc1. Modify any mermaid code blocks with arbitrary code and it will execute when the component is loaded by MDXjs. This vulnerability was patched in version(s) 1.3.0 and 2.0.0-rc2. There are currently no known workarounds.
- CVSS 3.1
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.40% probability · 33th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- mdx-mermaid project/mdx-mermaid
- Source
- security-advisories@github.com
References
- https://github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2aPatch, Third Party Advisory
- https://github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628Exploit, Third Party Advisory
- https://github.com/sjwall/mdx-mermaid/commit/f2b99386660fd13316823529c3f1314ebbcdfd2aPatch, Third Party Advisory
- https://github.com/sjwall/mdx-mermaid/security/advisories/GHSA-rvgm-35jw-q628Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.