nbconvert@6.0.0b7 vulnerabilities

Converting Jupyter Notebooks (.ipynb files) to other formats. Output formats include asciidoc, html, latex, markdown, pdf, py, rst, script. nbconvert can be used both as a Python library (`import nbconvert`) or as a command line tool (invoked as `jupyter nbconvert ...`).

  • latest version

    7.16.6

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS). An attacker can inject arbitrary HTML when generating HTML from a crafted notebook. The vulnerable points are:

    the field

    • notebook.metadata.language_info.pygments_lexer

    the nodes

    • notebook.metadata.title
    • notebook.metadata.widgets
    • notebook.cell.metadata.tags
    • notebook.cell.output.svg_filename
    • output.metadata.filenames
    • cell.output.metadata.width
    • cell.output.metadata.height

    and output data of the cells

    • text/html
    • image/svg+xml
    • text/markdown
    • application/javascript
    • cell.output.data["images/png"]
    • cell.output.data["images/jpeg"]
    • output.metadata.filenames['image/png']
    • output.metadata.filenames['image/jpeg']
    • application/vnd.jupyter.widget-state+json
    • application/vnd.jupyter.widget-view+json
    • raw type
    • markdown type

    How to fix Cross-site Scripting (XSS)?

    Upgrade nbconvert to version 6.3.0b0 or higher.

    [,6.3.0b0)