Improper Encoding or Escaping of Output Affecting github.com/vapor/leaf-kit package, versions <1.14.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Encoding or Escaping of Output vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SWIFT-VAPORLEAFKIT-15679876
  • published18 Mar 2026
  • disclosed16 Mar 2026
  • creditiCMDdev

Introduced: 16 Mar 2026

NewCVE-2026-28499  (opens in a new tab)
CWE-116  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-80  (opens in a new tab)

How to fix?

Upgrade vapor/leaf-kit to version 1.14.2 or higher.

Overview

vapor/leaf-kit is an an expressive, performant, and extensible templating language built for Swift.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the htmlEscaped process. An attacker can inject and execute arbitrary scripts in the context of the rendered page by supplying specially crafted input within arrays or dictionaries that is not properly escaped during template rendering.

CVSS Base Scores

version 4.0
version 3.1