[@imput/cobalt-web] Cross-site Scripting when downloading picker image from malicious instance
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-51498
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 19:39 UTC · Revision 1
Source evidence
[@imput/cobalt-web] Cross-site Scripting when downloading picker image from malicious instance
core-osv · Original sourcePublished 4 Nov 2024, 23:07 UTC
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.
osv:CVE-2024-51498
Complete source record
{
"id": "0322523890c196ee2bfb4e91d62271d7c1603f0bc4a1096773752d07a4f57ff6",
"url": "https://osv.dev/vulnerability/CVE-2024-51498",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "[@imput/cobalt-web] Cross-site Scripting when downloading picker image from malicious instance",
"summary": "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.",
"evidence": "osv:CVE-2024-51498",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-51498",
"aliases": [
"CVE-2024-51498",
"GHSA-cm4c-v4cm-3735"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/imputnet/cobalt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "66bac03e3078e4e781d2d3903c05ad66a883a354"
},
{
"fixed": "97977efabd92375f270d1818f38de3b0682c2f19"
},
{
"fixed": "c4be1d3a37b0deb6b6087ec7a815262ac942daf1"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "66bac03e3078e4e781d2d3903c05ad66a883a354"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "97977efabd92375f270d1818f38de3b0682c2f19"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "c4be1d3a37b0deb6b6087ec7a815262ac942daf1"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-51498.json"
}
}
],
"modified": "2026-10-28T02:30:51.589889171Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51498.json",
"https://github.com/imputnet/cobalt/security/advisories/GHSA-cm4c-v4cm-3735",
"https://nvd.nist.gov/vuln/detail/CVE-2024-51498",
"https://github.com/imputnet/cobalt/commit/66bac03e3078e4e781d2d3903c05ad66a883a354",
"https://github.com/imputnet/cobalt/commit/97977efabd92375f270d1818f38de3b0682c2f19",
"https://github.com/imputnet/cobalt/commit/c4be1d3a37b0deb6b6087ec7a815262ac942daf1"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "10.2.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51498.json"
}
},
"related_cves": [
{
"value": "CVE-2024-51498",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 520244,
"published_at": "2024-11-04T23:07:17.704+00:00"
}