OSV 1.4.0 · github-reviewed · 修改于 2026-07-07 01:29
发布时间
2026-07-07 01:29
GitHub 审查时间
2026-07-07 01:29
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/07/GHSA-jhhc-3hcp-qhm5/GHSA-jhhc-3hcp-qhm5.json
A CSS injection issue exists in WeasyPrint when HTML presentational hints are enabled. Unescaped attribute values are embedded into CSS, allowing injection of arbitrary CSS declarations. This affects applications processing untrusted HTML input.
File: weasyprint/css/init.py
The background attribute is used to construct CSS:
background-image:url({element.get("background")})
This string is parsed by tinycss2.parse_blocks_contents().
Because the value is not escaped, additional CSS declarations can be injected.
url()presentational_hints=True