CVE-2026-27120

Source
https://cve.org/CVERecord?id=CVE-2026-27120
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27120.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-27120
Aliases
Published
2026-02-20T21:27:09.642Z
Modified
2026-02-25T02:37:29.442506Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Leaf-kit html escaping does not work on characters that are part of extended grapheme cluster
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27120.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-75",
        "CWE-79",
        "CWE-87"
    ]
}
References

Affected packages

Git / github.com/vapor/leaf-kit

Affected ranges

Type
GIT
Repo
https://github.com/vapor/leaf-kit
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*
1.0.0
1.0.0-alpha.1
1.0.0-beta.2
1.0.0-beta.2.1
1.0.0-beta.2.2
1.0.0-rc.1
1.0.0-rc.1.1
1.0.0-rc.1.10
1.0.0-rc.1.11
1.0.0-rc.1.12
1.0.0-rc.1.13
1.0.0-rc.1.14
1.0.0-rc.1.15
1.0.0-rc.1.16
1.0.0-rc.1.17
1.0.0-rc.1.2
1.0.0-rc.1.3
1.0.0-rc.1.4
1.0.0-rc.1.5
1.0.0-rc.1.6
1.0.0-rc.1.7
1.0.0-rc.1.8
1.0.0-rc.1.9
1.0.0-tau.1
1.0.0-tau.1.1
1.0.0-zeta.1
1.1.0
1.10.0
1.10.1
1.10.2
1.10.3
1.10.4
1.10.5
1.10.6
1.11.0
1.11.1
1.12.0
1.13.0
1.13.1
1.14.0
1.2.0
1.3.0
1.3.1
1.4.0
1.5.0
1.6.0
1.7.0
1.8.0
1.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27120.json"