Vulnerability Details : CVE-2021-46888
Potential exploit
An issue was discovered in hledger before 1.23. A Stored Cross-Site Scripting (XSS) vulnerability exists in toBloodhoundJson that allows an attacker to execute JavaScript by encoding user-controlled values in a payload with base64 and parsing them with the atob function.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2021-46888
- cpe:2.3:a:hledger:hledger:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-46888
1.80%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 81 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-46888
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
2.3
|
2.7
|
NIST |
CWE ids for CVE-2021-46888
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-46888
-
https://github.com/simonmichael/hledger/releases/tag/1.23
Release 1.23 · simonmichael/hledger · GitHubRelease Notes
-
https://www.youtube.com/watch?v=QnRO-VkfIic
Stored XSS Hledger - YouTubeExploit;Third Party Advisory
-
https://github.com/simonmichael/hledger/pull/1663
web: base64 encode user controlled strings (#1525) by ArsenArsen · Pull Request #1663 · simonmichael/hledger · GitHubExploit;Issue Tracking;Patch;Third Party Advisory
-
https://github.com/simonmichael/hledger/issues/1525
XSS vulnerability: malicious javascript can be stored via hledger-web add/edit · Issue #1525 · simonmichael/hledger · GitHubExploit;Issue Tracking;Vendor Advisory
Jump to