# CVE-2026-49452: WeasyPrint: CSS Injection via Presentational Hints

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-18 · Modified: 2026-08-19
- Aliases: GHSA-jhhc-3hcp-qhm5, PYSEC-2026-3412, UBUNTU-CVE-2026-49452, DEBIAN-CVE-2026-49452, openSUSE-SU-2026:11249-1, openSUSE-SU-2026:21364-1, ALPINE-CVE-2026-49452
- Record: https://cvemate.com/vulnerability/CVE-2026-49452 · JSON: https://cvemate.com/vulnerability/CVE-2026-49452/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.335%, percentile 28.814%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine weasyprint (Alpine Linux): \< 69.0-r0
- debian weasyprint (Debian): All versions (No fix recorded) \| \< 69.0-1
- ubuntu weasyprint (Ubuntu): All versions (No fix recorded)
- kozea weasyprint: \< 69.0
- PyPI weasyprint (PyPI): ≤ 68.1
- opensuse python-weasyprint&distro=openSUSE Leap 16.0 (openSUSE): \< 65.1-bp160.3.1
- opensuse python-weasyprint&distro=openSUSE Tumbleweed (openSUSE): \< 69.0-1.1

## References

- <https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5>
- <https://github.com/Kozea/WeasyPrint/pull/2773>
- <https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55df1d>
- <https://github.com/Kozea/WeasyPrint/releases/tag/v69.0>
- <https://github.com/Kozea/WeasyPrint>
- <https://pypi.org/project/weasyprint>
- <https://github.com/advisories/GHSA-jhhc-3hcp-qhm5>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49452>
- <https://ubuntu.com/security/CVE-2026-49452>
- <https://www.cve.org/CVERecord?id=CVE-2026-49452>
- <https://www.courtbouillon.org/blog/00067-weasyprint-69/>
- <https://security-tracker.debian.org/tracker/CVE-2026-49452>
- <https://www.suse.com/security/cve/CVE-2026-49452>
- <https://bugzilla.suse.com/1270401>
- <https://security.alpinelinux.org/vuln/CVE-2026-49452>

---

Data as of 2026-12-05T09:45:19.717Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
