react-marked-markdown@1.1.1 vulnerabilities

Some React Components to use Markdown easily

Direct Vulnerabilities

Known vulnerabilities in the react-marked-markdown 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
  • C
Cross-site Scripting (XSS)

react-marked-markdown is a react components package that helps you use Markdown easily.

Affected versions of this package are vulnerable to cross-site scripting (XSS) via href attributes. It uses marked.Render() but overwrites the link method with a custom version that doesn't correctly escape values passed to the href prop of anchor components.

Proof of concept:

import React from 'react'
import ReactDOM from 'react-dom'
import { MarkdownPreview } from 'react-marked-markdown'

markedOptions={{ sanitize: true }}
value={'[XSS](javascript: alert`1`)'}

How to fix Cross-site Scripting (XSS)?

There is no fix version for react-marked-markdown.