CVE-2026-49452: WeasyPrint: CSS Injection via Presentational Hints
Vulnerability summary
CVE-2026-49452 is a medium (CVSS 6.5) vulnerability in kozea weasyprint. EPSS estimates a 0.34% chance of exploitation in the next 30 days, higher than 28.8% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 18-08-2026PublishedVulnerability first disclosed.
- 19-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.34%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
Decrease -0.04 pp
From 0.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse2 products
- python-weasyprint&distro=openSUSE Leap 16.0< 65.1-bp160.3.1
- python-weasyprint&distro=openSUSE Tumbleweed< 69.0-1.1
Alpine1 product
- weasyprint< 69.0-r0
Debian1 product
- weasyprintAll versions (No fix recorded) | < 69.0-1
Kozea1 product
- weasyprint< 69.0
PyPI1 product
- weasyprint≤ 68.1
Ubuntu1 product
- weasyprintAll versions (No fix recorded)
6 vendors · 7 products
References
15 links- github.com/Kozea/WeasyPrint/pull/2773X Refsource MISC
- github.com/Kozea/WeasyPrint/releases/tag/v69.0X Refsource MISC
- github.com/Kozea/WeasyPrintPACKAGE
- pypi.org/project/weasyprintPACKAGE