6.5

CVE-2026-49452: WeasyPrint: CSS Injection via Presentational Hints

Deferred
AliasesGHSA-jhhc-3hcp-qhm5PYSEC-2026-3412UBUNTU-CVE-2026-49452
Published 18-08-2026Last modified 19-08-2026

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.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.34%
0%100%
Low · -0.04 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 18-08-2026
    PublishedVulnerability first disclosed.
  2. 19-08-2026
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
PyPI1 product
  • weasyprint≤ 68.1
Ubuntu1 product
  • weasyprintAll versions (No fix recorded)

6 vendors · 7 products

References

15 links
Show all 15 references