chore(deps): update dependency weasyprint to v69 [security] #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/pypi-weasyprint-vulnerability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
68.1→69.0WeasyPrint has CSS Injection via Presentational Hints
CVE-2026-49452 / GHSA-jhhc-3hcp-qhm5 / PYSEC-2026-3412
More information
Details
Summary
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.
Details
File: weasyprint/css/init.py
The
backgroundattribute 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.
PoC
Impact
url()presentational_hints=TrueSuggested Fix
VULN-05_css_injection_presentational_hints.md
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
WeasyPrint has CSS Injection via Presentational Hints
CVE-2026-49452 / GHSA-jhhc-3hcp-qhm5 / PYSEC-2026-3412
More information
Details
Summary
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.
Details
File: weasyprint/css/init.py
The
backgroundattribute 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.
PoC
Impact
url()presentational_hints=TrueSuggested Fix
VULN-05_css_injection_presentational_hints.md
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NReferences
This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).
Release Notes
Kozea/WeasyPrint (weasyprint)
v69.0Compare Source
This is a security update (CVE-2026-49452).
We strongly recommend to upgrade WeasyPrint to the latest version if you use the
--presentational-hintsoption and render untrusted HTML with restricted CSS properties.Read about this release on our blog.
Security
Command-line API
--srgboption has been replaced by--output-intent=srgb. Other values are possible:device-cmykfor CMYK documents with no ICC profile, or the CSS identifier of a@color-profilerule.Python API
output_intentstring entry replaces thesrgbboolean in default options.Features
Bug fixes
Documentation
Contributors
Backers and sponsors
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
8999bca681bfd240f59e