Bug 2518129 (CVE-2026-49452) - CVE-2026-49452 weasyprint: WeasyPrint: CSS Injection via Presentational Hints
Summary: CVE-2026-49452 weasyprint: WeasyPrint: CSS Injection via Presentational Hints
Keywords:
Status: NEW
Alias: CVE-2026-49452
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2522064
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-18 18:21 UTC by OSIDB Bzimport
Modified: 2026-08-24 16:36 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-18 18:21:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.