CVE-2021-46888
MEDIUM 5.4CVSS 3.1Stored XSS in hledger-web
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.
- Published
- 21 May 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- HSEC-2023-0008
- Sources
- NVDJSONOSV HSEC-2023-0008JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | HSEC | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hledger | hledgercpe:2.3:a:hledger:hledger:*:*:*:*:*:*:*:* |
< 1.23 | 1.23 |
| OSV | Hackage | hledger-web | >= 0.24, < 1.23 | 1.23 |
References
- https://github.com/simonmichael/hledger/issues/1525 · Exploit, Issue Tracking, Vendor Advisory, REPORT
- https://github.com/simonmichael/hledger/pull/1663 · Exploit, Issue Tracking, Patch, Third Party Advisory, FIX
- https://github.com/simonmichael/hledger/releases/tag/1.23 · Release Notes
- https://www.youtube.com/watch?v=QnRO-VkfIic · Exploit, Third Party Advisory, EVIDENCE
- https://github.com/simonmichael/hledger/commit/ec51d28839b2910eea360b1b8c72904b51cf7821 · INTRODUCED
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 21 May 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Nov 2025)