CVE-2021-37634
Last modified
CVE-2021-37634 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. Leafkit is a templating language with Swift-inspired syntax. Versions prior to 1.3.0 are susceptible to Cross-site Scripting (XSS) attacks. EPSS estimates a 0.71% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Vapor | Leafkit | < 1.3.0 |
References
- https://github.com/vapor/leaf-kit/security/advisories/GHSA-rv3x-xq3r-8j9hThird Party Advisory
- https://github.com/vapor/leaf-kit/security/advisories/GHSA-rv3x-xq3r-8j9hThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-37634?
How severe is CVE-2021-37634?
How do I fix CVE-2021-37634?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-37629Nextcloud Richdocuments is an open source collaborative offi…5.3
- CVE-2021-3763A flaw was found in the Red Hat AMQ Broker management consol…4.3
- CVE-2021-37630Nextcloud Circles is an open source social network built for…6.5
- CVE-2021-37631Deck is an open source kanban style organization tool aimed …6.5
- CVE-2021-37632SuperMartijn642's Config Lib is a library used by a number o…8.1
- CVE-2021-37633Discourse is an open source discussion platform. In versions…6.1
- CVE-2021-37635TensorFlow is an end-to-end open source platform for machine…7.1
- CVE-2021-37636TensorFlow is an end-to-end open source platform for machine…5.5
- CVE-2021-37637TensorFlow is an end-to-end open source platform for machine…5.5
- CVE-2021-37638TensorFlow is an end-to-end open source platform for machine…7.8
- CVE-2021-37639TensorFlow is an end-to-end open source platform for machine…7.8
- CVE-2021-3764A memory leak flaw was found in the Linux kernel's ccp_run_a…5.5
Are you affected by CVE-2021-37634?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
