weasyprint
Affected
- introduced
61.0, fixed61.2(ecosystem)
Fixed versions
61.2
Fix
- Fixed version
61.2pip install --upgrade weasyprint==61.2
Advisory
Also known as: CVE-2024-28184, GHSA-35jj-wx47-4w8r
WeasyPrint allows the attachment of arbitrary files and URLs to a PDF
Impact
Since version 61.0, there's a vulnerability which allows attaching content of arbitrary files and URLs to a generated PDF document, even if url_fetcher is configured to prevent access to files and URLs.
Patches
Fixed by 734ee8e that’s included in 61.2
Workarounds
High Basis: CVSS v3 score 7.4, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
61.0, fixed 61.2 (ecosystem)61.2
61.2pip install --upgrade weasyprint==61.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0