CVE-2026-27120

MEDIUM

LeafKit < 1.4.1 - Cross-Site Scripting via Extended Grapheme Cluster Bypass

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 6.1
EPSS 0.0002
EPSS Percentile 4.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-79 CWE-87 CWE-75
Status published
Products (3)
SwiftURL/github.com/vapor/leaf-kit 0 - 1.4.1SwiftURL
SwiftURL/leaf-kit 0 - 1.4.1SwiftURL
vapor/leafkit < 1.14.1
Published Feb 20, 2026
Tracked Since Feb 21, 2026