Findings

CVE-2026-28499

LeafKit is a templating language with Swift-inspired syntax.

Published Mar 18, 2026 · updated Jun 17, 2026 · vapor leafkit

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 . This can result in XSS, allowing potentially untrusted input to be rendered unescaped. Version 1.14.2 fixes the issue.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Mar 18, 2026 · NIST NVD

    Detected

    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 . This can result in XSS, allowing potentially untrusted input to be rendered unescaped. Version 1.14.2 fixes the issue.

  2. Jun 17, 2026 · NIST NVD

    Updated

    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 . This can result in XSS, allowing potentially untrusted input to be rendered unescaped. Version 1.14.2 fixes the issue.

Affected

  • cpe vapor/leafkitversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-28499

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-28499

    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 . This can result in XSS, allowing potentially untrusted input to be rendered unescape

    nvd.nist.gov

References