markdown-to-jsx@5.4.2 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
Regular Expression Denial of Service (ReDoS)

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

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). Catastrophic backtracking in the BREAK_THEMATIC_R regex causes parsing to hang on non-matching input with repeating asterisks

How to fix Regular Expression Denial of Service (ReDoS)?

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

<7.2.0
  • H
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). Due to insufficient input sanitization the package may render output containing malicious JavaScript. This vulnerability can be exploited through input of links containing data or VBScript URIs and a base64-encoded payload.

How to fix Cross-site Scripting (XSS)?

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

<6.11.4
  • H
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). It is possible to circumvent sanitisation and inject script and style tags by using upper case letters, for example: <SCRIPT>alert('hi')</SCRIPT>.

How to fix Cross-site Scripting (XSS)?

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

<6.10.0