Home / Kozea / WeasyPrint / CVE-2026-49452
CVE-2026-49452: is it exploited, and which versions of Kozea WeasyPrint are affected and fixed?
CVE-2026-49452 is an injection vulnerability in Kozea WeasyPrint. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: weasyprint through 68.1 (GitHub advisory GHSA-jhhc-3hcp-qhm5). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:08 UTC.
What is CVE-2026-49452?
WeasyPrint: CSS Injection via Presentational Hints
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.
From the CVE record by GitHub_M, last updated August 19, 2026, 15:12 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Kozea | WeasyPrint | < 69.0 |
As the CVE record by GitHub_M states it, last updated August 19, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | weasyprint | <= 68.1 | none listed | GHSA-jhhc-3hcp-qhm5 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 6, 2026. Summary: WeasyPrint has CSS Injection via Presentational Hints.
How severe is CVE-2026-49452?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-49452 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, August 19, 2026)
- EPSS
- 0.34% probability of exploitation activity in the next 30 days, percentile 28.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Where are the vendor advisories and references?
- https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5 x_refsource_CONFIRM
- https://github.com/Kozea/WeasyPrint/pull/2773 x_refsource_MISC
- https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55df1d x_refsource_MISC
- https://github.com/Kozea/WeasyPrint/releases/tag/v69.0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- May 30, 2026
- Published
- August 18, 2026, 17:59 UTC
- CVE record updated
- August 19, 2026, 15:12 UTC by GitHub_M
- NVD
- Deferred, last modified October 22, 2026, 22:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect WeasyPrint?
- Oct 6, 2026CVE-2026-106443 Kozea WeasyPrint: improper input validation
- Sep 14, 2026CVE-2026-55073 Kozea WeasyPrint: server-side request forgery (SSRF)
- Jan 19, 2026CVE-2025-68616 Kozea WeasyPrint: open redirect
- Mar 9, 2024CVE-2024-28184 Kozea WeasyPrint: inclusion of code from an untrusted source
Questions about CVE-2026-49452
Is CVE-2026-49452 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.34% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Kozea WeasyPrint are affected by CVE-2026-49452?
weasyprint through 68.1, per the GitHub advisory GHSA-jhhc-3hcp-qhm5. The tables above give every range the sources list.
Which version fixes CVE-2026-49452?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-49452?
Medium (6.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-49452?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.