CVE-2024-28184
JSON

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 packageVersionsReported by
Kozea WeasyPrint>= 61.0, <= 61.1, from 61.0 before 61.2CVE List, NVD
weasyprint (PyPI)from 61.0 before 61.2GitHub Advisory Database, PyPA Advisory Database
fedoraproject fedora40NVD

All scores

GitHub_M7.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
GitHub7.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
PyPA Advisory Database7.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

Classification

CWE-829

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

SourceRecordLicence
CVE ListCVE-2024-28184 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-35jj-wx47-4w8r changed 2026-09-10CC-BY-4.0
NVDCVE-2024-28184 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-2033 changed 2026-07-07CC-BY-4.0