Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Kozea WeasyPrint
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Kozea WeasyPrint是Kozea组织开源的一个将HTML和CSS文档渲染为PDF的软件库。 Kozea WeasyPrint 69.0之前版本存在输入验证错误漏洞,该漏洞源于未转义的HTML presentational-hint属性值被嵌入CSS中,可能导致CSS注入和服务器端请求。

CVSS 6.5 · Medium EPSS 0.37% · P29

Affected Version Matrix 1

VendorProduct Version RangeStatus
Kozea WeasyPrint < 69.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-49452

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
WeasyPrint: CSS Injection via Presentational Hints
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输出中的特殊元素转义处理不恰当(注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Kozea WeasyPrint 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Kozea WeasyPrint是Kozea组织开源的一个将HTML和CSS文档渲染为PDF的软件库。 Kozea WeasyPrint 69.0之前版本存在输入验证错误漏洞,该漏洞源于未转义的HTML presentational-hint属性值被嵌入CSS中,可能导致CSS注入和服务器端请求。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Kozea WeasyPrint < 69.0 -

II. Public POCs for CVE-2026-49452

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49452

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-49452 (1)

Vendor Advisories for CVE-2026-49452 (1)

Vendor Pages for CVE-2026-49452 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-49452

No comments yet


Leave a comment