CVE-2026-49452
published medium CVSS 3.1 · 6.5WeasyPrint: CSS Injection via Presentational Hints
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Kozea | — | WeasyPrint< 69.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | weasyprint | Fixed | 69.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-weasyprintnoarch | Advisory build | 65.1-bp160.3.1 | OPENSUSE-SU-2026:21364-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-weasyprintaarch64 | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-weasyprintppc64le | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-weasyprints390x | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-weasyprintx86_64 | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-weasyprintaarch64 | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-weasyprintppc64le | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-weasyprints390x | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-weasyprintx86_64 | Advisory build | 69.0-1.1 | OPENSUSE-SU-2026:11249-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Kozea | WeasyPrint | < 69.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
4Provider assertions
2GitHub_M · cna
WeasyPrint: CSS Injection via Presentational Hints
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0fee1e0e314352a5af51d3f03b00ec575b132b0478ae2ac17fd525c237d9c5d3
- Ingested
- 23 Sep 2026, 09:17:57 UTC
- Source record
- Official CVE record