DRUPAL-CONTRIB-2026-327: Composer/drupal/entity_print vulnerability
This module enables you to print and export Drupal entities to PDF and other formats, using print engines such as Dompdf.
When generating a PDF for a page that contains third-party resources, the module sends several kinds of private data to the third-party server (including the user's session cookie and their Dompdf HTTP authentication credentials), regardless of the host those resources are loaded from. A third-party site referenced in printed content can therefore obtain the session data of users printing that content and use it to impersonate them.
This vulnerability is mitigated by the fact that to deliberately exploit this vulnerability, an attacker must be able to create or edit content using a text format that allows images or stylesheets from arbitrary sites (such as "Full HTML").
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/entity_printto a version that resolves this vulnerability.Fixed in 2.20.0