Skip to main content
VulnerabilityPublished

CVE-2026-28499: vapor leaf-kit · Cross-site Scripting

Affects vapor leaf-kitSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.14.2 when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.14.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade leaf-kit and github/vapor/leaf-kit to 1.14.2.

Affected software

ProductAffectedFixed in
vaporleaf-kitAffected
  • <1.14.2
Fixed in
  • 1.14.2
SwiftURLgithub/vapor/leaf-kitpkg:swift/github/vapor/leaf-kitOther threatsAffected
  • <1.14.2
Fixed in
  • 1.14.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, organizations should immediately upgrade all instances of vapor leaf-kit to version 1.14.2 or later, where the HTML escaping issue has been resolved. Developers should audit their templates to identify any usage of the #(value) syntax with collections and verify that no unescaped user input is rendered. Implement additional input validation and output encoding layers as defense-in-depth, especially for any dynamic content derived from untrusted sources. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of potential XSS attacks. Regularly review and update dependencies to incorporate security patches promptly. Conduct security testing, including automated scanning and manual code reviews, to detect similar injection flaws. Finally, educate development teams on secure templating practices and the importance of proper input neutralization to prevent future vulnerabilities.

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.

References

Community reviews

Loading reviews…