{"id":"GHSA-2gp3-6c9p-jp7w","summary":"Cross site scripting in code-server","details":"Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL.","aliases":["CVE-2021-42648"],"modified":"2026-09-10T03:49:07.202549818Z","published":"2022-05-12T00:00:40Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-05-24T22:18:10Z","nvd_published_at":"2022-05-11T18:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42648"},{"type":"WEB","url":"https://github.com/cdr/code-server/issues/4355"},{"type":"WEB","url":"https://github.com/coder/code-server/pull/4430"},{"type":"PACKAGE","url":"https://github.com/coder/code-server"}],"affected":[{"package":{"name":"code-server","ecosystem":"npm","purl":"pkg:npm/code-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.12.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-2gp3-6c9p-jp7w/GHSA-2gp3-6c9p-jp7w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}