# CVE-2026-49452: weasyprint: WeasyPrint helps web developers to create PDF documents

CVE-2026-49452 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2026-49452, released June 24, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-49452
- Priority: Routine
- CVSS: 6.5 (medium)
- EPSS: 0.0037
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 16, 2026

## Description

WeasyPrint helps web developers to create PDF documents. Prior to 69.0, WeasyPrint embeds unescaped HTML presentational-hint attribute values into CSS in weasyprint/css/__init__.py when presentational_hints=True. The background attribute is inserted into a background-image:url() declaration and parsed by tinycss2.parse_blocks_contents(), allowing untrusted HTML to inject additional CSS declarations. Applications that render untrusted HTML with presentational hints enabled can be affected by CSS injection and server-side requests through injected url() values. This issue is fixed in version 69.0.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-weasyprint opensuse-leap 16.0 | 65.1-bp160.3.1 | [OPENSUSE-SU-2026:21364-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21364-1.md) | Jul 16, 2026 |
| Linux | weasyprint Debian 14 | 69.0-1 | [DEBIAN-CVE-2026-49452](https://patchblox.com/security/data/fix/linux/debian-cve-2026-49452.md) | Jun 24, 2026 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
