Vulnerability · Published Mar 9, 2024 · Assigned by GitHub_M
CVE-2024-28184WeasyPrint allows the attachment of arbitrary files and URLs to a PDF
High 7.4
In plain English
A high-severity security flaw in WeasyPrint from Kozea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
WeasyPrint helps web developers to create PDF documents. 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. This vulnerability has been patched in version 61.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | weasyprint | 61.2-1 | DEBIAN-CVE-2024-28184 |
| Debian:14 | weasyprint | 61.2-1 | DEBIAN-CVE-2024-28184 |
| PyPI | weasyprint | 61.2 | GHSA-35jj-wx47-4w8r |
| PyPI | weasyprint | 61.2 | PYSEC-2026-2033 |
| Ubuntu:22.04:LTS | weasyprint | no fix listed | UBUNTU-CVE-2024-28184 |
| Ubuntu:24.04:LTS | weasyprint | no fix listed | UBUNTU-CVE-2024-28184 |
| Ubuntu:25.10 | weasyprint | no fix listed | UBUNTU-CVE-2024-28184 |
| Ubuntu:26.04:LTS | weasyprint | no fix listed | UBUNTU-CVE-2024-28184 |
| Ubuntu:26.10 | weasyprint | no fix listed | UBUNTU-CVE-2024-28184 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Kozea | WeasyPrint | >= 61.0, <= 61.1 |
Weakness: CWE-829 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
References
- https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-35jj-wx47-4w8r x_refsource_CONFIRM
- https://github.com/Kozea/WeasyPrint/commit/734ee8e2dc84ff3090682f3abff056d0907c8598 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6/