CVE-2026-49452 WeasyPrint: CSS Injection via Presentational Hints
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
9 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/weasyprint(Debian 12) | = 57.2-1; = 59.0-1; = 60.2-1; = 61.0-1 +12 more | No fix listed | No fix yet |
| debian/weasyprint(Debian 13) | = 62.3-1; = 67.0-1; = 69.0-1; = 69.0-2 +2 more | No fix listed | No fix yet |
| ubuntu/weasyprint(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/weasyprint(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/weasyprint(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/weasyprint(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/weasyprint(Debian 14) | < 69.0-1; = 62.3-1; = 67.0-1 | 69.0-1 | Fixed |
| pypi weasyprint(PyPI) | <= 68.1; = 0.1; = 0.2; = 0.2.1 +115 more | after 68.1 | Fixed |
| Kozea WeasyPrint | = < 69.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi weasyprint(PyPI) | <= 68.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.10 | No fix listed |
| pypi weasyprint(PyPI) | = 0.11 | No fix listed |
| pypi weasyprint(PyPI) | = 0.12 | No fix listed |
| pypi weasyprint(PyPI) | = 0.13 | No fix listed |
| pypi weasyprint(PyPI) | = 0.14 | No fix listed |
| pypi weasyprint(PyPI) | = 0.15 | No fix listed |
| pypi weasyprint(PyPI) | = 0.16 | No fix listed |
| pypi weasyprint(PyPI) | = 0.17 | No fix listed |
| pypi weasyprint(PyPI) | = 0.17.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.18 | No fix listed |
| pypi weasyprint(PyPI) | = 0.19 | No fix listed |
| pypi weasyprint(PyPI) | = 0.19.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.19.2 | No fix listed |
| pypi weasyprint(PyPI) | = 0.2 | No fix listed |
| pypi weasyprint(PyPI) | = 0.2.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.2.2 | No fix listed |
| pypi weasyprint(PyPI) | = 0.20 | No fix listed |
| pypi weasyprint(PyPI) | = 0.20.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.20.2 | No fix listed |
| pypi weasyprint(PyPI) | = 0.21 | No fix listed |
| pypi weasyprint(PyPI) | = 0.22 | No fix listed |
| pypi weasyprint(PyPI) | = 0.23 | No fix listed |
| pypi weasyprint(PyPI) | = 0.24 | No fix listed |
Show 124 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi weasyprint(PyPI) | = 0.25 | No fix listed |
| pypi weasyprint(PyPI) | = 0.26 | No fix listed |
| pypi weasyprint(PyPI) | = 0.27 | No fix listed |
| pypi weasyprint(PyPI) | = 0.28 | No fix listed |
| pypi weasyprint(PyPI) | = 0.29 | No fix listed |
| pypi weasyprint(PyPI) | = 0.3 | No fix listed |
| pypi weasyprint(PyPI) | = 0.3.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.30 | No fix listed |
| pypi weasyprint(PyPI) | = 0.31 | No fix listed |
| pypi weasyprint(PyPI) | = 0.32 | No fix listed |
| pypi weasyprint(PyPI) | = 0.33 | No fix listed |
| pypi weasyprint(PyPI) | = 0.34 | No fix listed |
| pypi weasyprint(PyPI) | = 0.35 | No fix listed |
| pypi weasyprint(PyPI) | = 0.36 | No fix listed |
| pypi weasyprint(PyPI) | = 0.37 | No fix listed |
| pypi weasyprint(PyPI) | = 0.38 | No fix listed |
| pypi weasyprint(PyPI) | = 0.39 | No fix listed |
| pypi weasyprint(PyPI) | = 0.4 | No fix listed |
| pypi weasyprint(PyPI) | = 0.40 | No fix listed |
| pypi weasyprint(PyPI) | = 0.41 | No fix listed |
| pypi weasyprint(PyPI) | = 0.42 | No fix listed |
| pypi weasyprint(PyPI) | = 0.42.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.42.2 | No fix listed |
| pypi weasyprint(PyPI) | = 0.42.3 | No fix listed |
| pypi weasyprint(PyPI) | = 0.5 | No fix listed |
| pypi weasyprint(PyPI) | = 0.6 | No fix listed |
| pypi weasyprint(PyPI) | = 0.6.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.7 | No fix listed |
| pypi weasyprint(PyPI) | = 0.7.1 | No fix listed |
| pypi weasyprint(PyPI) | = 0.8 | No fix listed |
| pypi weasyprint(PyPI) | = 0.9 | No fix listed |
| pypi weasyprint(PyPI) | = 43 | No fix listed |
| pypi weasyprint(PyPI) | = 43rc1 | No fix listed |
| pypi weasyprint(PyPI) | = 43rc2 | No fix listed |
| pypi weasyprint(PyPI) | = 44 | No fix listed |
| pypi weasyprint(PyPI) | = 45 | No fix listed |
| pypi weasyprint(PyPI) | = 46 | No fix listed |
| pypi weasyprint(PyPI) | = 47 | No fix listed |
| pypi weasyprint(PyPI) | = 48 | No fix listed |
| pypi weasyprint(PyPI) | = 49 | No fix listed |
| pypi weasyprint(PyPI) | = 50 | No fix listed |
| pypi weasyprint(PyPI) | = 51 | No fix listed |
| pypi weasyprint(PyPI) | = 52 | No fix listed |
| pypi weasyprint(PyPI) | = 52.1 | No fix listed |
| pypi weasyprint(PyPI) | = 52.2 | No fix listed |
| pypi weasyprint(PyPI) | = 52.3 | No fix listed |
| pypi weasyprint(PyPI) | = 52.4 | No fix listed |
| pypi weasyprint(PyPI) | = 52.5 | No fix listed |
| pypi weasyprint(PyPI) | = 53.0 | No fix listed |
| pypi weasyprint(PyPI) | = 53.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 53.0b2 | No fix listed |
| pypi weasyprint(PyPI) | = 53.1 | No fix listed |
| pypi weasyprint(PyPI) | = 53.2 | No fix listed |
| pypi weasyprint(PyPI) | = 53.3 | No fix listed |
| pypi weasyprint(PyPI) | = 53.4 | No fix listed |
| pypi weasyprint(PyPI) | = 54.0 | No fix listed |
| pypi weasyprint(PyPI) | = 54.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 54.1 | No fix listed |
| pypi weasyprint(PyPI) | = 54.2 | No fix listed |
| pypi weasyprint(PyPI) | = 54.3 | No fix listed |
| pypi weasyprint(PyPI) | = 55.0 | No fix listed |
| pypi weasyprint(PyPI) | = 55.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 56.0 | No fix listed |
| pypi weasyprint(PyPI) | = 56.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 56.1 | No fix listed |
| pypi weasyprint(PyPI) | = 57.0 | No fix listed |
| pypi weasyprint(PyPI) | = 57.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 57.1 | No fix listed |
| pypi weasyprint(PyPI) | = 57.2 | No fix listed |
| pypi weasyprint(PyPI) | = 58.0 | No fix listed |
| pypi weasyprint(PyPI) | = 58.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 58.1 | No fix listed |
| pypi weasyprint(PyPI) | = 59.0 | No fix listed |
| pypi weasyprint(PyPI) | = 59.0b1 | No fix listed |
| pypi weasyprint(PyPI) | = 60.0 | No fix listed |
| pypi weasyprint(PyPI) | = 60.1 | No fix listed |
| pypi weasyprint(PyPI) | = 60.2 | No fix listed |
| pypi weasyprint(PyPI) | = 61.0 | No fix listed |
| pypi weasyprint(PyPI) | = 61.1 | No fix listed |
| pypi weasyprint(PyPI) | = 61.2 | No fix listed |
| pypi weasyprint(PyPI) | = 62.0 | No fix listed |
| pypi weasyprint(PyPI) | = 62.1 | No fix listed |
| pypi weasyprint(PyPI) | = 62.2 | No fix listed |
| pypi weasyprint(PyPI) | = 62.3 | No fix listed |
| pypi weasyprint(PyPI) | = 63.0 | No fix listed |
| pypi weasyprint(PyPI) | = 63.1 | No fix listed |
| pypi weasyprint(PyPI) | = 64.0 | No fix listed |
| pypi weasyprint(PyPI) | = 64.1 | No fix listed |
| pypi weasyprint(PyPI) | = 65.0 | No fix listed |
| pypi weasyprint(PyPI) | = 65.1 | No fix listed |
| pypi weasyprint(PyPI) | = 66.0 | No fix listed |
| pypi weasyprint(PyPI) | = 67.0 | No fix listed |
| pypi weasyprint(PyPI) | = 68.0 | No fix listed |
| pypi weasyprint(PyPI) | = 68.1 | No fix listed |
| Kozea WeasyPrint | = < 69.0 | No fix listed |
| debian/weasyprint(Debian:12) | All versions | No fix listed |
| debian/weasyprint(Debian:12) | = 57.2-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 59.0-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 60.2-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 61.0-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 61.1-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 61.2-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 61.2-2 | No fix listed |
| debian/weasyprint(Debian:12) | = 62.0-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 62.1-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 62.2-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 62.3-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 67.0-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 69.0-1 | No fix listed |
| debian/weasyprint(Debian:12) | = 69.0-2 | No fix listed |
| debian/weasyprint(Debian:12) | = 70.0-1 | No fix listed |
| debian/weasyprint(Debian:13) | All versions | No fix listed |
| debian/weasyprint(Debian:13) | = 62.3-1 | No fix listed |
| debian/weasyprint(Debian:13) | = 67.0-1 | No fix listed |
| debian/weasyprint(Debian:13) | = 69.0-1 | No fix listed |
| debian/weasyprint(Debian:13) | = 69.0-2 | No fix listed |
| debian/weasyprint(Debian:13) | = 70.0-1 | No fix listed |
| debian/weasyprint(Debian:14) | < 69.0-1 | 69.0-1 |
| debian/weasyprint(Debian:14) | = 62.3-1 | No fix listed |
| debian/weasyprint(Debian:14) | = 67.0-1 | No fix listed |
| ubuntu/weasyprint(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/weasyprint(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/weasyprint(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/weasyprint(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5 exploit vendor-advisory
- github.com product
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory
- https://github.com/Kozea/WeasyPrint/pull/2773
- https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55df1d
- https://github.com/Kozea/WeasyPrint/releases/tag/v69.0
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2518129 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-49452 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-61143 third-party-advisory