WeasyPrint allows the attachment of arbitrary files and URLs to a PDF
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-829.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kozea | WeasyPrint | 61.0 – 61.1 | — | No fix listed | CNA |
| — | weasyprint (PyPI) | 61.0 to before 61.2 | 61.2 | Patch available | GHSA-35jj-wx47-4w8r |
- WeasyPrint VendorKozea Affected 61.0 – 61.1 Fixed in — No fix listed CNA
- weasyprint (PyPI) Vendor— Affected 61.0 to before 61.2 Fixed in 61.2 Patch available GHSA-35jj-wx47-4w8r
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kozea:weasyprint:*:*:*:*:*:*:*:* | 61.0 to before 61.2 | Vulnerable | Kozea |
| cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* | 40 | Vulnerable | Fedoraproject |
- cpe:2.3:a:kozea:weasyprint:*:*:*:*:*:*:*:* Versions 61.0 to before 61.2 Vulnerable ·Kozea
- cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* Versions 40 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-35jj-wx47-4w8r weasyprint (PyPI) Fixed in 61.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-28184
- 2026-10-03 Alias added: GHSA-35jj-wx47-4w8r
References
Advisory 3
More Kozea Weasyprint vulnerabilities
- TI-2025-42134 WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect CVSS 3.1HIGH 7.5
Sources
- CVE-2024-28184 · CVE Program
- CVE-2024-28184 · NVD
- FIRST EPSS
- GHSA-35jj-wx47-4w8r · GitHub Advisory Database · CC BY 4.0
- CVE-2024-28184 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences