CVE-2026-49452Kozea WeasyPrint
Medium 6.5 No auth needed
Follow: this CVE · Kozea · Kozea WeasyPrint We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Aug 18, 2026
- Updated
- Oct 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-74
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for WeasyPrint.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | weasyprint |
≤ 68.1 |
no fixed version | — |
| PyPI | weasyprint |
≤ 68.1 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-jhhc-3hcp-qhm5, PYSEC-2026-3412). Check the version in your lockfile before upgrading.
Affected products
- Kozea · WeasyPrint
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for python-weasyprint · SUSE · openSUSE-SU-2026:21364-1 · Jul 16, 2026 Medium
- python313-weasyprint-69.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11249-1 · Jul 10, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.