# CVE-2026-55073: WeasyPrint restrictive URL fetcher bypass allows local file read and SSRF

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-09T18:06:38.000Z
- Modified: 2026-09-23T17:17:44.630Z
- Also known as: GHSA-jf6q-chmf-3h3v, PYSEC-2026-3940
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

WeasyPrint helps web developers to create PDF documents. Prior to 70.0, server-side applications that configure a restrictive url_fetcher and pass attacker-influenced values to HTML.write_pdf() can have the restriction bypassed through the xmp_metadata or stylesheets options. In weasyprint/pdf/init.py, xmp_metadata calls select_source() without the document url_fetcher, allowing an accessible local file to be read and embedded verbatim in the output PDF. In weasyprint/document.py, stylesheets constructs CSS() without the document url_fetcher, allowing local or internal resource loading and propagating the permissive fetcher through nested CSS imports and url() references. The stylesheets channel applies fetched resources but does not by itself disclose stylesheet comments verbatim. This issue is fixed in version 70.0.

(As written by CVE List.)

## Affected

- Kozea WeasyPrint: < 70.0
- weasyprint (PyPI): before 70.0

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jf6q-chmf-3h3v> (exploit, web)
- <https://github.com/Kozea/WeasyPrint/commit/289e278439b017cd9263b4cd4727026987f86443>
- <https://github.com/Kozea/WeasyPrint/releases/tag/v70.0> (web)
- <https://github.com/Kozea/WeasyPrint> (package)
- <https://pypi.org/project/weasyprint> (package)
- <https://github.com/advisories/GHSA-jf6q-chmf-3h3v> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-55073> (advisory)

## Sources

- CVE List: [CVE-2026-55073](https://www.cve.org/CVERecord?id=CVE-2026-55073), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-jf6q-chmf-3h3v](https://github.com/advisories/GHSA-jf6q-chmf-3h3v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-55073](https://nvd.nist.gov/vuln/detail/CVE-2026-55073), Public domain, modified 2026-09-23
- PyPA Advisory Database: [PYSEC-2026-3940](https://osv.dev/vulnerability/PYSEC-2026-3940), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-55073 · Whole record: https://cve.day/CVE-2026-55073.json · Rebuilt by cve.day 2026-11-25T22:59:38.308Z
