pdfjs-dist@6.1.200

Generic build of Mozilla's PDF.js library.

  • latest version

    6.2.108

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    21 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the pdfjs-dist 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
    • H
    Cross-site Scripting (XSS)

    pdfjs-dist is a Portable Document Format (PDF) library that is built with HTML5.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the enableScripting configuration when loading a crafted PDF file. An attacker can execute arbitrary JavaScript code in the context of the hosting domain by enticing a user to open a malicious PDF. This is only exploitable if enableScripting is set to true and no Content Security Policy is configured to disallow script-src.

    How to fix Cross-site Scripting (XSS)?

    Upgrade pdfjs-dist to version 6.2.108 or higher.

    >=5.6.205 <6.2.108