VDB
Sign up
MEDIUM6.1

GHSA-4wx3-54gh-9fr9

Cross site scripting in markdown-to-jsx

Quick fix

GHSA-4wx3-54gh-9fr9 — markdown-to-jsx: upgrade to the fixed version with the command below.

npm install markdown-to-jsx@7.4.0

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/markdown-to-jsx
Introduced in: 0Fixed in: 7.4.0
Fixnpm install markdown-to-jsx@7.4.0

References