@astrojs/markdoc@2.1.0

Add support for Markdoc in your Astro site

  • latest version

    2.1.5

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    5 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @astrojs/markdoc 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
    • M
    Cross-site Scripting (XSS)

    @astrojs/markdoc is an Add support for Markdoc in your Astro site

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in runHighlighterWithAstro(), which returns the code unescaped when the requested language has no Prism grammar, and every caller inserts the result into the page as raw HTML. An attacker can execute arbitrary JavaScript in a visitor's browser by placing HTML in a code block labelled with an unsupported language, such as vue, svelte, mdx, console or text. Only applications that render untrusted code through the <Prism /> component or the prism() extension of @astrojs/markdoc are affected.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @astrojs/markdoc to version 2.1.2 or higher.

    >=0.3.0 <2.1.2