{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "66bac03e3078e4e781d2d3903c05ad66a883a354"
            }
          ],
          "repo": "https://github.com/imputnet/cobalt",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "97977efabd92375f270d1818f38de3b0682c2f19"
            }
          ],
          "repo": "https://github.com/imputnet/cobalt",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c4be1d3a37b0deb6b6087ec7a815262ac942daf1"
            }
          ],
          "repo": "https://github.com/imputnet/cobalt",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-cm4c-v4cm-3735"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51498.json"
  },
  "details": "cobalt is a media downloader that doesn't piss you off. A malicious cobalt instance could serve links with the `javascript:` protocol, resulting in Cross-site Scripting (XSS) when the user tries to download an item from a picker. This issue has been present since commit `66bac03e`, was mitigated in commit `97977efa` (correctly configured web instances were no longer vulnerable) and fully fixed in commit `c4be1d3a` (included in release version 10.2.1). Users are advised to upgrade. Users unable to upgrade should enable a content-security-policy.",
  "id": "CVE-2024-51498",
  "modified": "2026-04-01T23:08:47.987346294Z",
  "published": "2024-11-04T23:07:17.704Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51498.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/imputnet/cobalt/security/advisories/GHSA-cm4c-v4cm-3735"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-51498"
    },
    {
      "type": "FIX",
      "url": "https://github.com/imputnet/cobalt/commit/66bac03e3078e4e781d2d3903c05ad66a883a354"
    },
    {
      "type": "FIX",
      "url": "https://github.com/imputnet/cobalt/commit/97977efabd92375f270d1818f38de3b0682c2f19"
    },
    {
      "type": "FIX",
      "url": "https://github.com/imputnet/cobalt/commit/c4be1d3a37b0deb6b6087ec7a815262ac942daf1"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "[@imput/cobalt-web] Cross-site Scripting when downloading picker image from malicious instance"
}