# CVE-2024-28184: WeasyPrint allows the attachment of arbitrary files and URLs to a PDF

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2024-03-08T20:42:52.000Z
- Modified: 2026-09-10T03:50:10.011Z
- Also known as: GHSA-35jj-wx47-4w8r, PYSEC-2026-2033
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Kozea WeasyPrint: >= 61.0, <= 61.1; from 61.0 before 61.2
- weasyprint (PyPI): from 61.0 before 61.2
- fedoraproject fedora: 40

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 7.4 High `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> (vendor-advisory, web)
- <https://github.com/Kozea/WeasyPrint/commit/734ee8e2dc84ff3090682f3abff056d0907c8598> (patch, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6/> (mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28184> (advisory)
- <https://github.com/Kozea/WeasyPrint> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6> (web)
- <https://pypi.org/project/weasyprint> (package)
- <https://github.com/advisories/GHSA-35jj-wx47-4w8r> (advisory)

## Sources

- CVE List: [CVE-2024-28184](https://www.cve.org/CVERecord?id=CVE-2024-28184), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-35jj-wx47-4w8r](https://github.com/advisories/GHSA-35jj-wx47-4w8r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28184](https://nvd.nist.gov/vuln/detail/CVE-2024-28184), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2033](https://osv.dev/vulnerability/PYSEC-2026-2033), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-28184 · Whole record: https://cve.day/CVE-2024-28184.json · Rebuilt by cve.day 2026-11-25T22:58:37.378Z
