Skip to content

CVE-2026-28499 LeafKit's HTML escaping may be skipped for Collection values, enabling XSS

MediumCVSS 6.9 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
swifturl github.com/vapor/leaf-kit(SwiftURL) < 1.14.2 1.14.2 Fixed
vapor leafkit < 1.14.2 1.14.2 Fixed
vapor leaf-kit = < 1.14.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
vapor leaf-kit = < 1.14.2 No fix listed
swifturl github.com/vapor/leaf-kit(SwiftURL) < 1.14.2 1.14.2
vapor leafkit < 1.14.2 1.14.2

References