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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-03-09 · Modified: 2025-02-13
- Aliases: GHSA-35jj-wx47-4w8r, PYSEC-2026-2033, UBUNTU-CVE-2024-28184, DEBIAN-CVE-2024-28184
- Record: https://cvemate.com/vulnerability/CVE-2024-28184 · JSON: https://cvemate.com/vulnerability/CVE-2024-28184/json

## Description

```text
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.
```

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- EPSS: 0.737%, percentile 55.872%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian weasyprint (Debian): \< 61.2-1
- ubuntu weasyprint (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 40
- kozea weasyprint: ≥ 61.0, ≤ 61.1 \| ≥ 61.0, \< 61.2
- PyPI weasyprint (PyPI): ≥ 61.0, \< 61.2

## References

- <https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-35jj-wx47-4w8r>
- <https://github.com/Kozea/WeasyPrint/commit/734ee8e2dc84ff3090682f3abff056d0907c8598>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6/>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28184>
- <https://github.com/Kozea/WeasyPrint>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6>
- <https://pypi.org/project/weasyprint>
- <https://github.com/advisories/GHSA-35jj-wx47-4w8r>
- <https://ubuntu.com/security/CVE-2024-28184>
- <https://www.cve.org/CVERecord?id=CVE-2024-28184>
- <https://security-tracker.debian.org/tracker/CVE-2024-28184>

---

Data as of 2026-12-05T09:45:24.170Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
