Files
epub2pdf/tests
sirdave73 51d39fead1
Test / Tests (Python 3.12) (push) Canceled after 0s
C2 SSRF fix: pre-validate HTML resource refs before WeasyPrint render
WeasyPrint's image loader swallows per-fetch errors and renders a broken
image, so a job could report DONE while a remote URL was contacted
(SSRF/data egress against the no-data-egress guarantee). Add
scan_for_remote() which rejects http(s)/ftp/ws/wss/file resource
references up-front (ValueError -> job error) before WeasyPrint ever
runs; local data: URIs still render via the default loader. Also add
tests/test_review_findings_20260903.py (remote -> job error, valid
data: -> job done).
2026-09-04 00:18:17 -04:00
..