{"id":"CVE-2024-28184","aliases":["CVE-2024-28184","GHSA-35jj-wx47-4w8r","PYSEC-2026-2033"],"related":[],"kind":"vulnerability","state":"published","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nSince 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.\n\n### Patches\nFixed by 734ee8e that’s included in 61.2\n\n### Workarounds\n- Check that no PDF attachment is defined in source HTML.\n- Launch WeasyPrint in a sandbox that prevents access to the filesystem and the network.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-03-08T20:42:52.000Z","modified":"2026-09-10T03:50:10.011Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"}],"cwes":["CWE-829"],"affected":[{"ranges":[{"version":">= 61.0, <= 61.1","status":"affected"}],"vendor":"Kozea","product":"WeasyPrint","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"61.0","status":"affected","fixed":"61.2"}],"ecosystem":"PyPI","package":"weasyprint","purl":"pkg:pypi/weasyprint","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"61.0","fixed":"61.2"}],"vendor":"kozea","product":"weasyprint","cpe":"cpe:2.3:a:kozea:weasyprint:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"40"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"61.0","status":"affected","fixed":"61.2"}],"ecosystem":"PyPI","package":"weasyprint","purl":"pkg:pypi/weasyprint","source":"pysec"}],"references":[{"url":"https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-35jj-wx47-4w8r","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Kozea/WeasyPrint/commit/734ee8e2dc84ff3090682f3abff056d0907c8598","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28184","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Kozea/WeasyPrint","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/weasyprint","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-35jj-wx47-4w8r","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-19T14:00:17.785Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-28184","url":"https://www.cve.org/CVERecord?id=CVE-2024-28184","licence":"CVE Terms of Use","modified":"2025-02-13T17:47:28.192Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-35jj-wx47-4w8r","url":"https://github.com/advisories/GHSA-35jj-wx47-4w8r","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.011Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-28184","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28184","licence":"Public domain","modified":"2026-06-17T07:21:09.743Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2033","url":"https://osv.dev/vulnerability/PYSEC-2026-2033","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:23.962Z"}],"updatedAt":"2026-11-25T22:58:37.378Z","epss":{"score":0.00737,"percentile":0.55727,"date":"2026-12-01T12:00:22.000Z"}}