> CVE-2026-27120 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-02-20 22:16
MODIFIED
2026-02-20 22:16
CVSS_SCORE V3
6.1
EPSS (Prob. Exploit)
0.33%
Top 74.5%
DATA SOURCES:
NVD 🔗 2026-02-20 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-04 OSV 🔗 2026-02-24

> DESCRIPTION

Leafkit is a templating language with Swift-inspired syntax. Prior to 1.4.1, htmlEscaped in leaf-kit will only escape html special characters if the extended grapheme clusters match, which allows bypassing escaping by using an extended grapheme cluster containing both the special html character and some additional characters. In the case of html attributes, this can lead to XSS if there is a leaf variable in the attribute that is user controlled. This vulnerability is fixed in 1.4.1.

> 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:R/S:C/C:L/I:L/A:N
EXPLOITABILITY
2.8
IMPACT
2.7

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà 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-75 CWE-79 CWE-87

> CWE DETAILED DESCRIPTIONS

CWE-75: Failure to Sanitize Special Elements into a Different Plane - The product does not adequately filter user-controlled input for special elements with control implications. | CWE-79: Improper Neutralization of Input During Web Page Generation - The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. | CWE-87: Improper Neutralization of Alternate XSS Syntax - The product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax.

> GITHUB SECURITY ADVISORY

GHSA-4hfh-fch3-5q7p MODERATE

Leaf-kit html escaping does not work on characters that are part of extended grapheme cluster

AFFECTED PACKAGES:
SWIFT / github.com/vapor/leaf-kit
< 1.4.1
Fixed in: 1.4.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Leaf-kit html escaping does not work on characters that are part of extended grapheme cluster

AFFECTED PACKAGES:
Unknown / Unknown
49 versions affected
ALIASES:
GHSA-4hfh-fch3-5q7p

> HISTORIQUE DES MODIFICATIONS

Première apparition
20/02/2026 22:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:58
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) - The product does not adequately filter user-controlled input for special elements with control implica...
Nouvelle valeur:
CWE-75: Failure to Sanitize Special Elements into a Different Plane - The product does not adequately filter user-controlled input for special elements with control implications. | CWE-79: Improper Ne...
📊 ENRICHISSEMENT 01/03/2026 06:46
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) - The product does not adequately filter user-controlled input for special elements with control implica...
Total des modifications: 2 Dernière mise à jour: 1 week ago

> REFERENCES

https://github.com/vapor/leaf-kit/commit/8919e39476c3a4ba05c28b71546bb9195f87ef3...
https://github.com/vapor/leaf-kit/security/advisories/GHSA-4hfh-fch3-5q7p
« BACK_TO_HOME