Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2021-37634
vapor leafkit

Score6.1 Medium
CVSS 3.1
Exploit probability (EPSS)0.71%
within the next 30 days
CategoryCross-site scripting (XSS)
Published9 August 2021
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, if a user clicks a link, opens a file or similar.

Impact is limited: reading confidential data, modifying data.

The impact can spread beyond the vulnerable component.

Weakness type: Cross-site scripting (XSS).

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

Leafkit is a templating language with Swift-inspired syntax. Versions prior to 1.3.0 are susceptible to Cross-site Scripting (XSS) attacks. This affects anyone passing unsanitised data to Leaf's variable tags. Before this fix, Leaf would not escape any strings passed to tags as variables. If an attacker managed to find a variable that was rendered with their unsanitised data, they could inject scripts into a generated Leaf page, which could enable XSS attacks if other mitigations such as a Content Security Policy were not enabled. This has been patched in 1.3.0. As a workaround sanitize any untrusted input before passing it to Leaf and enable a CSP to block inline script and CSS data.

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

Weakness: CWE-79 – Cross-site scripting (XSS)

Affected products

VendorProductVersions
vaporleafkit<1.3.0

Sources

Latest in the same category

  • CVE-2026-140097 Critical 9.1
    Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-138277 Low 2.3
    Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Apache Commons BCEL. This only happens when you're using Class2HTML to generate webpages for…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-140006 Medium 5.4
    minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-139994 Medium 4.7
    React Router is a router for React. From 7.11.0 until 7.18.4 and 8.4.0, react Router's unstable RSC Data mode and RSC Framework mode render redirects containing an attacker-controlled redirect destination into…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-125083 High 7.6
    The vault-auth plugin in Kong Gateway Enterprise and Kong AI Gateway does not escape the access token in the HashiCorp Vault KV request URL, allowing a Consumer to read older secret versions and authenticate with…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-139988 Medium 5.1
    Foliovision FV Player 8 through 8.2.1 contains a stored cross-site scripting vulnerability in get_popup_code() that allows authenticated Contributor+ attackers to inject script via the popup and end_action_value…
    Cross-site scripting (XSS) · 30 November 2026