markdown-to-jsx@7.2.1 vulnerabilities

Convert markdown to JSX with ease for React and React-like projects. Super lightweight and highly configurable.

Direct Vulnerabilities

Known vulnerabilities in the markdown-to-jsx package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

markdown-to-jsx is a lightweight, customizable React markdown component.

Affected versions of this package 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.

How to fix Cross-site Scripting (XSS)?

Upgrade markdown-to-jsx to version 7.4.0 or higher.

<7.4.0