# Print Page block <= 1.3.3 - Authenticated (Contributor+) CSS Injection via Print Page Block Style Attributes

- **ID:** WPSEC-2026-4506
- **Plugin:** Print Page Block – Print Full Page or Specific Section (`print-page`), https://wordpress.org/plugins/print-page/
- **Affected versions:** all versions before 1.3.4
- **Fixed in:** 1.3.4 (Update to 1.3.4 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-74
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/print-page
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4506/

## Description

The Print Page Block plugin for WordPress is vulnerable to CSS Injection via the block's typography, border, padding and other style attributes in all versions up to, and including, 1.3.3. This is due to the block's front-end script inserting these values, including the font family, font category and the Google Font @import URL, without sanitization into a <style> element, which lets them close the CSS rule they belong to. This makes it possible for authenticated attackers with contributor-level access and above to inject arbitrary CSS, including @import rules that load external stylesheets, into pages that display the block, which can be used to deface or spoof page content and to load resources from off-site hosts when the page is viewed.

## References

- https://wpsec.com/vuln/WPSEC-2026-4506/
- https://plugins.svn.wordpress.org/print-page/tags/1.3.4/
- https://wordpress.org/plugins/print-page/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4506/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
