Live threats

All CVEs / Kozea

CVE-2026-49452Kozea WeasyPrint

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
Aug 18, 2026
Updated
Oct 22, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for WeasyPrint.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI weasyprint ≤ 68.1 no fixed version —
PyPI weasyprint ≤ 68.1 no fixed version —

Per OSV / GitHub Advisories (GHSA-jhhc-3hcp-qhm5, PYSEC-2026-3412). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.