What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: vapor Leafkit 1.14.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-28499 or the next vulnerability affects your stack