Security Advisories (1)
CVE-2026-16766 (2026-07-25)

Catalyst::View::Wkhtmltopdf versions before 0.6.1 for Perl allow shell command injection (RCE) via PDF render options. Options are passed directly to the wkhtmltopdf command without sanitization. Any web application that passes user-controlled options such as the page_size, orientation or margins without validation allows shell command injection. Version 0.6.0 was released with an incomplete fix for this issue. Note that the wkhtmltopdf project is no longer being developed, and users of this package should migrate to alternative solutions.

Changes for version v0.6.0 - 2026-07-24

  • Security
    • Fix potential shell command injection from arguments (CVE-2026-16766).
  • Enhancements
    • Return a filehandle instead of the PDF contents
    • The command attribute was changed to use File::Which to guess the patch of wkhtmltopdf.
    • Added support for additional options. (See documentation)
    • Internal code improvements.
    • The HTML is read as raw bytes.
  • Documentation
    • Updated AUTHOR with maintainer.
    • Added STATUS and SECURITY CONSIDERATIONS sections about wkhtmltopdf no longer being maintained.
    • Updated the link to the wkhtmltopdf project.
    • Documented release dates in Changes.
  • Tests
    • Added simple test.
  • Toolchain
    • Revised Dist::Zilla configuration.

Documentation

Modules

Catalyst view to convert HTML (or TT) content to PDF using wkhtmltopdf