Arbitrary Code Injection Affecting weasyprint package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.34% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-WEASYPRINT-19865248
  • published16 Sept 2026
  • disclosed18 Aug 2026

Introduced: 18 Aug 2026

CVE-2026-49452  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest weasyprint.

NVD Description

Note: Versions mentioned in the description apply only to the upstream weasyprint package and not the weasyprint package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.