{
  "schema_version": "1.4.0",
  "id": "GHSA-9fcq-h23h-rxhx",
  "modified": "2024-04-04T04:15:47Z",
  "published": "2023-05-21T21:30:14Z",
  "aliases": [
    "CVE-2021-46888"
  ],
  "details": "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.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
    }
  ],
  "affected": [],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-46888"
    },
    {
      "type": "WEB",
      "url": "https://github.com/simonmichael/hledger/issues/1525"
    },
    {
      "type": "WEB",
      "url": "https://github.com/simonmichael/hledger/pull/1663"
    },
    {
      "type": "WEB",
      "url": "https://github.com/simonmichael/hledger/releases/tag/1.23"
    },
    {
      "type": "WEB",
      "url": "https://www.youtube.com/watch?v=QnRO-VkfIic"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2023-05-21T20:15:09Z"
  }
}