# CVE-2021-46888: Stored XSS in hledger-web

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-05-21T00:00:00.000Z
- Modified: 2026-06-17T04:15:45.270Z
- Also known as: HSEC-2023-0008
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- hledger-web (Hackage): from 0.24 before 1.23
- hledger hledger: before 1.23

## References

- <https://github.com/simonmichael/hledger/issues/1525> (exploit, issue-tracking, report, vendor-advisory)
- <https://github.com/simonmichael/hledger/pull/1663> (exploit, fix, issue-tracking, patch, third-party-advisory)
- <https://www.youtube.com/watch?v=QnRO-VkfIic> (exploit, evidence, third-party-advisory)
- <https://github.com/simonmichael/hledger/releases/tag/1.23> (release-notes)
- <https://github.com/simonmichael/hledger/commit/ec51d28839b2910eea360b1b8c72904b51cf7821> (introduced)

## Sources

- CVE List: [CVE-2021-46888](https://www.cve.org/CVERecord?id=CVE-2021-46888), CVE Terms of Use, modified 2025-01-21
- Haskell Security Advisories: [HSEC-2023-0008](https://osv.dev/vulnerability/HSEC-2023-0008), CC0-1.0, modified 2025-11-14
- NVD: [CVE-2021-46888](https://nvd.nist.gov/vuln/detail/CVE-2021-46888), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46888 · Whole record: https://cve.day/CVE-2021-46888.json · Rebuilt by cve.day 2026-11-25T22:58:08.467Z
