Advisory Database
  • Advisories
  • Dependency Scanning
  1. swift
  2. ›
  3. github.com/vapor/leaf-kit
  4. ›
  5. CVE-2026-28499

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

March 16, 2026 (updated May 7, 2026)

LeafKit HTML-escaping is not working correctly when a template prints a collection (Array / Dictionary) via #(value). This can result in XSS, allowing potentially untrusted input to be rendered unescaped.

References

  • github.com/advisories/GHSA-6jj5-j4j8-8473
  • github.com/vapor/leaf-kit/commit/6044b844caa858a0c5f2505ac166f5a057c990dc
  • github.com/vapor/leaf-kit/releases/tag/1.14.2
  • github.com/vapor/leaf-kit/security/advisories/GHSA-6jj5-j4j8-8473
  • nvd.nist.gov/vuln/detail/CVE-2026-28499

Detect and mitigate CVE-2026-28499 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.14.2

Fixed versions

  • 1.14.2

Solution

Upgrade to version 1.14.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • 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)

Source file

swift/github.com/vapor/leaf-kit/CVE-2026-28499.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.