react-marked-markdown@1.3.3

Some React Components to use Markdown easily

  • latest version

    1.4.6

  • first published

    10 years ago

  • latest version published

    8 years ago

  • deprecated

    Package is deprecated

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable 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'
    
    ReactDOM.render(
    <MarkdownPreview
    markedOptions={{ sanitize: true }}
    value={'[XSS](javascript: alert`1`)'}
    />,
    document.getElementById('root')
    )
    

    How to fix Cross-site Scripting (XSS)?

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

    *