CVE-2026-49452
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
6.5
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-08-18 18:17:49.147000
Last modified
2026-10-22 22:10:00.250000
View original CVE JSON
{
"id": "CVE-2026-49452",
"sourceIdentifier": "[email protected]",
"published": "2026-08-18T18:17:49.147",
"lastModified": "2026-10-22T22:10:00.250",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "WeasyPrint ayuda a los desarrolladores web a crear documentos PDF. Antes de la versión 69.0, WeasyPrint incrusta valores de atributos de sugerencia presentacional HTML sin escapar en CSS en weasyprint/css/__init__.py cuando presentational_hints=True. El atributo background se inserta en una declaración background-image:url() y es analizado por tinycss2.parse_blocks_contents(), permitiendo que HTML no confiable inyecte declaraciones CSS adicionales. Las aplicaciones que renderizan HTML no confiable con las sugerencias presentacionales habilitadas pueden verse afectadas por inyección CSS y solicitudes del lado del servidor a través de valores url() inyectados. Este problema se ha solucionado en la versión 69.0."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Kozea",
"product": "WeasyPrint",
"versions": [
{
"version": "< 69.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 3.9,
"impactScore": 2.5
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-19T15:12:11.871495Z",
"id": "CVE-2026-49452",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-74"
}
]
}
],
"references": [
{
"url": "https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55df1d",
"source": "[email protected]"
},
{
"url": "https://github.com/Kozea/WeasyPrint/pull/2773",
"source": "[email protected]"
},
{
"url": "https://github.com/Kozea/WeasyPrint/releases/tag/v69.0",
"source": "[email protected]"
},
{
"url": "https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5",
"source": "[email protected]"
},
{
"url": "https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-jhhc-3hcp-qhm5",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}