Skip to main content
← All vulnerabilities
CVE-2026-28499

LeafKit's HTML escaping may be skipped for Collection values, enabling XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.14.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

LeafKit is a templating language with Swift-inspired syntax. Prior to version 1.14.2, HTML escaping doesn't work correctly when a template prints a collection (Array / Dictionary) via `#(value)`. This can result in XSS, allowing potentially untrusted input to be rendered unescaped. Version 1.14.2 fixes the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • vapor leaf-kit

    fixed in 1.14.2

References 3

GitHub · vapor/leaf-kit