Skip to main content
VulnerabilityPublished Updated

CVE-2026-27120: vapor leaf-kit · Special Element Injection

Affects vapor leaf-kitSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.1 Medium : upgrade to 1.4.1 when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.4.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade vapor leaf-kit to 1.4.1.

Affected software

ProductAffectedFixed in
vaporleaf-kitAffected
  • <1.4.1
Fixed in
  • 1.4.1

AI-suggested

The primary mitigation is to upgrade leaf-kit to version 1.4.1 or later, where the vulnerability is fixed. Developers should audit their codebases to identify any usage of leaf-kit versions prior to 1.4.1 and plan immediate upgrades. Additionally, implement defense-in-depth by applying Content Security Policy (CSP) headers to restrict script execution and reduce the impact of potential XSS attacks. Input validation and output encoding should be reviewed to ensure no user-controlled data is injected into HTML attributes without proper escaping. Security teams should conduct penetration testing focusing on XSS vectors involving extended grapheme clusters. Monitoring web application logs for suspicious input patterns or unusual user behavior can help detect exploitation attempts. Finally, educating developers about the nuances of Unicode grapheme clusters and their impact on escaping mechanisms can prevent similar issues in the future.

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.

References

Community reviews

Loading reviews…