PatchSiren cyber security CVE debrief
CVE-2026-49452 Kozea CVE debrief
CVE-2026-49452 debrief: WeasyPrint embeds unescaped HTML presentational-hint attribute values into CSS, allowing CSS injection and potential server-side requests through injected url() values. This issue is fixed in version 69.0. Affected product deployments should be identified in managed environments, and owners should assess exposure and consider upgrades or mitigations. The vulnerability allows untrusted HTML to inject additional CSS declarations, potentially leading to server-side requests and unauthorized access.
- Vendor
- Kozea
- Product
- WeasyPrint
- CVSS
- MEDIUM 6.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-18
- Original CVE updated
- 2026-09-18
- Advisory published
- 2026-08-18
- Advisory updated
- 2026-09-18
Who should care
Defenders responsible for WeasyPrint deployments, especially those rendering untrusted HTML with presentational hints enabled, should assess exposure and consider upgrades or mitigations.
Why it matters
CVE-2026-49452 is a CSS injection vulnerability in WeasyPrint that allows untrusted HTML to inject additional CSS declarations, potentially leading to server-side requests and unauthorized access. Defenders should prioritize verifying exposure in WeasyPrint deployments, especially where untrusted HTML is rendered with presentational hints enabled, and assess the need for upgrades or mitigations.
- Potential CSS injection and server-side requests through injected url() values
- Possible unauthorized access or data leakage through CSS injection
- Need for verification of WeasyPrint version and exposure
- Potential for denial-of-service or other unintended behavior
Technical summary
WeasyPrint embeds unescaped HTML presentational-hint attribute values into CSS, allowing CSS injection and potential server-side requests through injected url() values. Applications rendering untrusted HTML with presentational hints enabled may be affected. The vulnerability is fixed in WeasyPrint version 69.0. Defenders should prioritize verifying exposure in WeasyPrint deployments, especially where untrusted HTML is rendered with presentational hints enabled, and assess the need for upgrades or mitigations. The issue involves the background attribute being inserted into a background-image:url() declaration and parsed by tinycss2.parse_blocks_contents().
Defensive priority
Defenders should prioritize verifying exposure in WeasyPrint deployments, especially where untrusted HTML is rendered with presentational hints enabled, and assess the need for upgrades or mitigations.
Recommended defensive actions
- Verify WeasyPrint version and assess exposure
- Evaluate the use of presentational hints in untrusted HTML rendering
- Consider upgrading to WeasyPrint version 69.0 or later
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and NVD entry provide details on the vulnerability, including its description, CVSS score, and affected versions. However, specific details about exploitation or victim impact are not provided.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-49452 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-49452
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-49452 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-49452
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55df1d
-
Source reference
Unverified legacy reference
URL: https://github.com/Kozea/WeasyPrint/pull/2773
-
Source reference
Unverified legacy reference
URL: https://github.com/Kozea/WeasyPrint/releases/tag/v69.0
-
Source reference
Unverified legacy reference
URL: https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.