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

Configuration 1 (hide)

cpe:2.3:a:vapor:leafkit:*:*:*:*:*:*:*:*

History

18 Mar 2026, 19:48

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
First Time Vapor
Vapor leafkit
CPE cpe:2.3:a:vapor:leafkit:*:*:*:*:*:*:*:*
References () https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc - () https://github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc - Patch
References () https://github.com/vapor/leaf-kit/releases/tag/1.14.2 - () https://github.com/vapor/leaf-kit/releases/tag/1.14.2 - Release Notes
References () https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 - () https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 - Exploit, Vendor Advisory

18 Mar 2026, 15:16

Type Values Removed Values Added
References () https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 - () https://github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473 -

18 Mar 2026, 14:52

Type Values Removed Values Added
Summary
  • (es) LeafKit es un lenguaje de plantillas con sintaxis inspirada en Swift. Antes de la versión 1.14.2, el escape de HTML no funciona correctamente cuando una plantilla imprime una colección (Array / Dictionary) a través de `#(value)`. Esto puede resultar en XSS, permitiendo que la entrada potencialmente no confiable se renderice sin escape. La versión 1.14.2 soluciona el problema.

18 Mar 2026, 02:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-18 02:16

Updated : 2026-03-18 19:48


NVD link : CVE-2026-28499

Mitre link : CVE-2026-28499

CVE.ORG link : CVE-2026-28499


JSON object : View

Products Affected

vapor

  • leafkit
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-80

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

CWE-116

Improper Encoding or Escaping of Output