{"cve":"CVE-2026-49452","nvd":{"published":"2026-08-18T18:17:49.147","modified":"2026-10-22T22:10:00.250","status":"Deferred","description":"WeasyPrint helps web developers to create PDF documents. Prior to 69.0, WeasyPrint embeds unescaped HTML presentational-hint attribute values into CSS in weasyprint/css/__init__.py when presentational_hints=True. The background attribute is inserted into a background-image:url() declaration and parsed by tinycss2.parse_blocks_contents(), allowing untrusted HTML to inject additional CSS declarations. Applications that render untrusted HTML with presentational hints enabled can be affected by CSS injection and server-side requests through injected url() values. This issue is fixed in version 69.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5},"cwes":["CWE-74"],"references":["https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55df1d","https://github.com/Kozea/WeasyPrint/pull/2773","https://github.com/Kozea/WeasyPrint/releases/tag/v69.0","https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5","https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:26.291718493+00:00"},"epss":{"cve":"CVE-2026-49452","score":0.00372,"percentile":0.30908,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-jhhc-3hcp-qhm5","url":"https://osv.dev/vulnerability/GHSA-jhhc-3hcp-qhm5","summary":"WeasyPrint has CSS Injection via Presentational Hints","modified":"2026-07-13T16:42:26.449768536Z","packages":[{"ecosystem":"PyPI","name":"weasyprint","purl":"pkg:pypi/weasyprint","ranges":["<=68.1"],"fixed":[]}]},{"id":"PYSEC-2026-3412","url":"https://osv.dev/vulnerability/PYSEC-2026-3412","summary":"WeasyPrint has CSS Injection via Presentational Hints","modified":"2026-07-13T16:33:27.702295818Z","packages":[{"ecosystem":"PyPI","name":"weasyprint","purl":"pkg:pypi/weasyprint","ranges":["<=68.1"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}