Improper Neutralization of Equivalent Special Elements Affecting github.com/vapor/leaf-kit package, versions <1.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (9th 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 IDSNYK-SWIFT-VAPORLEAFKIT-15325874
  • published23 Feb 2026
  • disclosed19 Feb 2026
  • creditBrian Wolff

Introduced: 19 Feb 2026

NewCVE-2026-27120  (opens in a new tab)
CWE-76  (opens in a new tab)

How to fix?

Upgrade vapor/leaf-kit to version 1.4.1 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 Neutralization of Equivalent Special Elements in the htmlEscaped() function. An attacker can inject malicious HTML or JavaScript into rendered attributes by crafting input that bypasses character escaping using extended grapheme clusters.

References

CVSS Base Scores

version 4.0
version 3.1