weasyprint — security advisory
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.
- Products
- weasyprint
- Affected versions
- 57.2-1, 59.0-1, 60.2-1, 61.0-1, 61.1-1, 61.2-1, 61.2-2, 62.0-1, 62.1-1, 62.2-1, 62.3-1, 67.0-1, 69.0-1, 69.0-2, 70.0-1
- Fixed versions
- 69.0-1
- CVEs
- CVE-2026-49452
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 01:55 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-49452
weasyprint
Fixed versions: Not specified
weasyprint
Fixed versions: Not specified
weasyprint
Fixed versions: 69.0-1
Complete source record
{
"id": "9959de6428d52368184b8944914b1609c1869451742051cbd76747994de65398",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-49452",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-49452",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-49452",
"products": [
{
"name": {
"value": "weasyprint",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "57.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "59.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "60.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "61.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "61.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "61.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "61.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "62.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "62.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "62.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "62.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "67.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "69.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "69.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "70.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "weasyprint",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "62.3-1",
"evidence": "/affected/1/versions"
},
{
"value": "67.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "69.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "69.0-2",
"evidence": "/affected/1/versions"
},
{
"value": "70.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "weasyprint",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "69.0-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "62.3-1",
"evidence": "/affected/2/versions"
},
{
"value": "67.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-49452",
"aliases": [
"DEBIAN-CVE-2026-49452"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "weasyprint",
"purl": "pkg:deb/debian/weasyprint?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"57.2-1",
"59.0-1",
"60.2-1",
"61.0-1",
"61.1-1",
"61.2-1",
"61.2-2",
"62.0-1",
"62.1-1",
"62.2-1",
"62.3-1",
"67.0-1",
"69.0-1",
"69.0-2",
"70.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-49452.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "weasyprint",
"purl": "pkg:deb/debian/weasyprint?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"62.3-1",
"67.0-1",
"69.0-1",
"69.0-2",
"70.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-49452.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "69.0-1"
}
]
}
],
"package": {
"name": "weasyprint",
"purl": "pkg:deb/debian/weasyprint?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"62.3-1",
"67.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-49452.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:05:12.665413723Z",
"provider": "osv",
"upstream": [
"CVE-2026-49452"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-49452"
]
},
"related_cves": [
{
"value": "CVE-2026-49452",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 424290,
"published_at": "2026-08-18T18:17:49.147+00:00"
}