| Name | CVE-2026-49452 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| weasyprint (PTS) | bookworm | 57.2-1 | vulnerable |
| trixie | 62.3-1 | vulnerable |
| forky, sid | 69.0-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| weasyprint | source | (unstable) | 69.0-1 | | | |
Notes
[trixie] - weasyprint <no-dsa> (Minor issue)
[bookworm] - weasyprint <postponed> (Minor issue; only exploitable when presentational hints are enabled, disabled by default)
[bullseye] - weasyprint <postponed> (Minor issue; only exploitable when presentational hints are enabled, disabled by default)
https://www.courtbouillon.org/blog/00067-weasyprint-69/
https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5