7.4high
WeasyPrint allows the attachment of arbitrary files and URLs to a PDF
- Severity
- 7.4high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.74% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-35jj-wx47-4w8rPYSEC-2026-2033
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
| Product or package | Versions | Reported by |
|---|---|---|
| Kozea WeasyPrint | >= 61.0, <= 61.1, from 61.0 before 61.2 | CVE List, NVD |
| weasyprint (PyPI) | from 61.0 before 61.2 | GitHub Advisory Database, PyPA Advisory Database |
| fedoraproject fedora | 40 | NVD |
All scores
| GitHub_M | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
| PyPA Advisory Database | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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
- Check that no PDF attachment is defined in source HTML.
- Launch WeasyPrint in a sandbox that prevents access to the filesystem and the network.
NVD (es)
WeasyPrint ayuda a los desarrolladores web a crear documentos PDF. Desde la versión 61.0, existe una vulnerabilidad que permite adjuntar contenido de archivos y URL arbitrarios a un documento PDF generado, incluso si `url_fetcher` está configurado para impedir el acceso a archivos y URL. Esta vulnerabilidad ha sido parcheada en la versión 61.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-28184 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-35jj-wx47-4w8r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-28184 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2033 changed 2026-07-07 | CC-BY-4.0 |