cve/2024/CVE-2024-21535.md
2025-09-29 16:08:36 +00:00

18 lines
783 B
Markdown

### [CVE-2024-21535](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21535)
![](https://img.shields.io/static/v1?label=Product&message=markdown-to-jsx&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%3C%207.4.0%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Cross-site%20Scripting%20(XSS)&color=brighgreen)
### Description
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.
### POC
#### Reference
- https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886
#### Github
No PoCs found on GitHub currently.