> CVE-2026-49452 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-08-18 18:17
MODIFIED
2026-08-18 18:17
CVSS_SCORE V3
6.5
EPSS (Prob. Exploit)
0.37%
Top 70.4%
DATA SOURCES:
NVD đź”— 2026-08-18 CWE MITRE đź”— 2026-09-01 FIRST EPSS đź”— 2026-10-18 GITHUB đź”— 2026-10-29 OSV đź”— 2026-10-26

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EXPLOITABILITY
3.9
IMPACT
2.5

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-74

> CWE DETAILED DESCRIPTIONS

CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') - The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

> GITHUB SECURITY ADVISORY

GHSA-jhhc-3hcp-qhm5 MODERATE

WeasyPrint has CSS Injection via Presentational Hints

AFFECTED PACKAGES:
PIP / weasyprint
<= 68.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

WeasyPrint: CSS Injection via Presentational Hints

AFFECTED PACKAGES:
Unknown / Unknown
81 versions affected
ALIASES:
GHSA-jhhc-3hcp-qhm5, PYSEC-2026-3412

> HISTORIQUE DES MODIFICATIONS

Première apparition
18/08/2026 18:17
Source: NVD
📊 ENRICHISSEMENT 01/09/2026 06:02
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') - The product constructs all or part of a command, data structure, or record using externally...
Total des modifications: 1 Dernière mise à jour: 1 month ago

> REFERENCES

https://github.com/Kozea/WeasyPrint/commit/e158264e33fa399b29f415d30719c1d85a55d...
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
« BACK_TO_HOME