jsreport-chrome-pdf@1.9.0 vulnerabilities

jsreport recipe which is rendering pdf from html using headless chrome

Direct Vulnerabilities

Known vulnerabilities in the jsreport-chrome-pdf package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Arbitrary File Read

jsreport-chrome-pdf is a

Affected versions of this package are vulnerable to Arbitrary File Read. An Arbitrary File Read vulnerability exists in lib/conversion.js.

PoC

<script>document.write(window.location='../../../../../etc/passwd')</script>

How to fix Arbitrary File Read?

Upgrade jsreport-chrome-pdf to version 1.10.0 or higher.

<1.10.0