CVE-2024-21535
Quantizor Markdown-to-jsx vulnerability
Versions of the package markdown-to-jsx before 7.4.0 are vulnerable to Cross-site Scripting (XSS) via the src property due to improper input sanitization. An attacker can execute arbitrary code by injecting a malicious iframe element in the markdown.
Affected products
Markdown-to-jsx. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Quantizor Markdown-to-jsx runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a · Patch
- security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2024-21535
- github.com/advisories/GHSA-4wx3-54gh-9fr9
- nvd.nist.gov/vuln/detail/CVE-2024-21535
- cve.org/CVERecord?id=CVE-2024-21535
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.