{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:getgrav:dom-sanitizer:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.0.7"
              }
            ],
            "source": [
              "DESCRIPTION",
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c2a98f27ad742668b254282ccc5581871d0fb601"
            }
          ],
          "repo": "https://github.com/rhukster/dom-sanitizer",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49146.json"
  },
  "details": "DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.",
  "id": "CVE-2023-49146",
  "modified": "2026-07-08T05:37:43.621962614Z",
  "published": "2023-11-22T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49146.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-49146"
    },
    {
      "type": "FIX",
      "url": "https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601"
    }
  ],
  "schema_version": "1.7.5"
}