{"api_version":"1","generated_at":"2026-07-24T20:12:57+00:00","cve":"CVE-2021-46888","urls":{"html":"https://cve.report/CVE-2021-46888","api":"https://cve.report/api/cve/CVE-2021-46888.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-46888","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-46888"},"summary":{"title":"CVE-2021-46888","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2023-05-21 20:15:00","updated_at":"2023-05-26 18:58:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/simonmichael/hledger/pull/1663","name":"https://github.com/simonmichael/hledger/pull/1663","refsource":"MISC","tags":[],"title":"web: base64 encode user controlled strings (#1525) by ArsenArsen · Pull Request #1663 · simonmichael/hledger · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/simonmichael/hledger/releases/tag/1.23","name":"https://github.com/simonmichael/hledger/releases/tag/1.23","refsource":"MISC","tags":[],"title":"Release 1.23 · simonmichael/hledger · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/simonmichael/hledger/issues/1525","name":"https://github.com/simonmichael/hledger/issues/1525","refsource":"MISC","tags":[],"title":"XSS vulnerability: malicious javascript can be stored via hledger-web add/edit · Issue #1525 · simonmichael/hledger · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.youtube.com/watch?v=QnRO-VkfIic","name":"https://www.youtube.com/watch?v=QnRO-VkfIic","refsource":"MISC","tags":[],"title":"Stored XSS Hledger - YouTube","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-46888","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46888","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"46888","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"hledger","cpe5":"hledger","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-46888","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/simonmichael/hledger/issues/1525","refsource":"MISC","name":"https://github.com/simonmichael/hledger/issues/1525"},{"url":"https://github.com/simonmichael/hledger/pull/1663","refsource":"MISC","name":"https://github.com/simonmichael/hledger/pull/1663"},{"url":"https://github.com/simonmichael/hledger/releases/tag/1.23","refsource":"MISC","name":"https://github.com/simonmichael/hledger/releases/tag/1.23"},{"url":"https://www.youtube.com/watch?v=QnRO-VkfIic","refsource":"MISC","name":"https://www.youtube.com/watch?v=QnRO-VkfIic"}]}},"nvd":{"publishedDate":"2023-05-21 20:15:00","lastModifiedDate":"2023-05-26 18:58:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:hledger:hledger:*:*:*:*:*:*:*:*","versionEndExcluding":"1.23","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}