Home
Trends
Vulnerabilities
News
Researchers
Why dbugs?

Alextrob

#37902of 53,619
7.4Total CVSS
Vulnerabilities · 1
PT-2021-21749
7.4
2021-08-09
Leafkit · Leafkit · CVE-2021-37634
**Name of the Vulnerable Software and Affected Versions** Leafkit versions prior to 1.3.0 **Description** Leafkit is a templating language with Swift-inspired syntax. The issue affects anyone passing unsanitised data to Leaf's variable tags. Before the 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 Cross-site Scripting (XSS) attacks if other mitigations such as a Content Security Policy were not enabled. **Recommendations** For versions prior to 1.3.0, update to version 1.3.0 to resolve the issue. As a temporary workaround, sanitize any untrusted input before passing it to Leaf and enable a Content Security Policy to block inline script and CSS data.