{"id":"CVE-2024-51498","summary":"[@imput/cobalt-web] Cross-site Scripting when downloading picker image from malicious instance","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.","aliases":["GHSA-cm4c-v4cm-3735"],"modified":"2026-04-02T12:23:06.954791Z","published":"2024-11-04T23:07:17.704Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51498.json","cwe_ids":["CWE-79"],"cna_assigner":"GitHub_M"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/imputnet/cobalt","events":[{"introduced":"0"},{"fixed":"66bac03e3078e4e781d2d3903c05ad66a883a354"}]},{"type":"GIT","repo":"https://github.com/imputnet/cobalt","events":[{"introduced":"0"},{"fixed":"97977efabd92375f270d1818f38de3b0682c2f19"}]},{"type":"GIT","repo":"https://github.com/imputnet/cobalt","events":[{"introduced":"0"},{"fixed":"c4be1d3a37b0deb6b6087ec7a815262ac942daf1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-51498.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","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"}]}