{"id":"CVE-2024-28184","aliases":["DEBIAN-CVE-2024-28184","EUVD-2024-0798","GHSA-35jj-wx47-4w8r","PYSEC-2026-2033","UBUNTU-CVE-2024-28184"],"status":"published","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","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.","severity":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00737,"percentile":0.55006,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-829"],"published":"2024-03-08T20:42:52Z","modified":"2026-11-02T12:01:30Z","fixes":[{"ecosystem":"PyPI","package":"weasyprint","fixed_in":["61.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"weasyprint","fixed_in":["61.2-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"weasyprint","fixed_in":["61.2-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"61.0"},{"last_affected":"61.1"},{"fixed":"61.2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"61.2-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"61.2-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"61.0"},{"fixed":"61.2"}]}],"versions":["61.0","61.1"]},{"source":"osv","ecosystem":"PyPI","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"61.0"},{"fixed":"61.2"}]}],"versions":["61.0","61.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["50-2","51-1","51-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["51-2","51-3","53.4-1","54.0-1","54.1-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["59.0-1","60.2-1","61.0-1","61.1-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["62.3-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["67.0-1","69.0-1","69.0-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"weasyprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["62.3-1","62.3-1build1","67.0-1"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"kozea","product":"weasyprint"}],"references":[{"url":"https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-35jj-wx47-4w8r","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"https://github.com/Kozea/WeasyPrint/commit/734ee8e2dc84ff3090682f3abff056d0907c8598","tags":["x_refsource_MISC","x_transferred","Patch","fix","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6/","tags":["x_transferred","Mailing List","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28184","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZLQZMOEDY72TS43HDXOBVID2VYCTWIH6","tags":["web"]},{"url":"https://github.com/advisories/GHSA-35jj-wx47-4w8r","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28184.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-28184","tags":["advisory"]},{"url":"https://github.com/Kozea/WeasyPrint","tags":["package"]},{"url":"https://pypi.org/project/weasyprint","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-28184","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-28184","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-28184","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","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.","status":"published","published":"2024-03-09T00:50:32.115Z","modified":"2025-02-13T17:47:28.192Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T14:34:18.597034Z"}],"euvd":[{"id":"EUVD-2024-0798","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.","status":"published","published":"2024-03-09T00:50:32Z","modified":"2025-02-13T17:47:28Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T20:53:31.829035Z"}],"ghsa":[{"id":"GHSA-35jj-wx47-4w8r","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","description":"### 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.","status":"published","published":"2024-03-08T20:42:52Z","modified":"2025-02-13T19:08:26Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T14:38:31.416868Z"}],"nvd":[{"id":"CVE-2024-28184","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.","status":"published","published":"2024-03-09T01:15:07.573Z","modified":"2026-06-17T07:21:09.743Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"secondary"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T14:09:39.488031Z"}],"osv":[{"id":"CVE-2024-28184","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","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.","status":"published","published":"2024-03-09T00:50:32.115Z","modified":"2026-10-28T02:30:28.863414071Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T15:44:39.569658Z"},{"id":"DEBIAN-CVE-2024-28184","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.","status":"published","published":"2024-03-09T01:15:07.573Z","modified":"2026-11-02T12:01:30.423088992Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T15:45:42.530184Z"},{"id":"GHSA-35jj-wx47-4w8r","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","description":"### 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.","status":"published","published":"2024-03-08T20:42:52Z","modified":"2026-09-10T03:50:10.011519888Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T15:46:35.050232Z"},{"id":"PYSEC-2026-2033","title":"WeasyPrint allows the attachment of arbitrary files and URLs to a PDF","description":"### 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.","status":"published","published":"2026-07-07T11:45:34.890224Z","modified":"2026-07-07T17:46:23.962040206Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T15:52:55.537808Z"},{"id":"UBUNTU-CVE-2024-28184","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.","status":"published","published":"2024-03-09T01:15:00Z","modified":"2026-10-17T12:56:43.898235521Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T16:54:48.333535Z"}]}}
