CVE-2021-4263: leanote vulnerable to cross-site scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.18277%
CWE
Published
12/21/2022
Updated
10/20/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/leanote/leanote | go | <= 2.6.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped user-controlled 'content' being directly injected into DOM via .html() in the history module. The pre-patch code lacked sanitization (added via trimTitle() in the fix), making the module's HTML rendering function vulnerable. The commit diff explicitly shows the vulnerable code path in the history.js module's markdown handling branch.