Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-37634

7.4 · HIGH
Published Aug 9, 2021 vapor CWE-79 EPSS 0.71% (51th pctl)

Overview

CVE-2021-37634 is a high-severity vulnerability affecting vapor leafkit. It was published on August 9, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from vapor. Update leafkit to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
vapor leafkit >= 0, < 1.3.0 Affected

Frequently Asked Questions

What is CVE-2021-37634?

CVE-2021-37634 is a high-severity vulnerability affecting vapor leafkit. It was published on August 9, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

How severe is CVE-2021-37634?

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-37634?

Check the references section for vendor advisories and patches from vapor. Update leafkit to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-37634?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-37634 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.