{"id":"CVE-2021-46872","aliases":["CVE-2021-46872"],"related":[],"kind":"vulnerability","state":"published","title":"An issue was discovered in Nim before 1.6.2.","summary":"An issue was discovered in Nim before 1.6.2. The RST module of the Nim language stdlib, as used in NimForum and other products, permits the javascript: URI scheme and thus can lead to XSS in some applications. (Nim versions 1.6.2 and later are fixed; there may be backports of the fix to some earlier versions. NimForum 2.2.0 is fixed.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in Nim before 1.6.2. The RST module of the Nim language stdlib, as used in NimForum and other products, permits the javascript: URI scheme and thus can lead to XSS in some applications. (Nim versions 1.6.2 and later are fixed; there may be backports of the fix to some earlier versions. NimForum 2.2.0 is fixed.)","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en Nim antes de la versión 1.6.2. El módulo RST del lenguaje Nim stdlib, tal como se usa en NimForum y otros productos, permite el esquema javascript: URI y, por lo tanto, puede conducir a XSS en algunas aplicaciones. (Las versiones 1.6.2 y posteriores de Nim están corregidas; puede haber versiones anteriores de la solución para algunas versiones anteriores. NimForum 2.2.0 está corregida).","source":"nvd"}],"published":"2023-01-13T00:00:00.000Z","modified":"2026-06-17T04:15:41.963Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.6.2"}],"vendor":"nim-lang","product":"nim","cpe":"cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.2.0"}],"vendor":"nim-lang","product":"nimforum","cpe":"cpe:2.3:a:nim-lang:nimforum:*:*:*:*:*:nim:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nim-lang/nimforum","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://forum.nim-lang.org/t/8852","tags":["issue-tracking","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nim-lang/Nim/pull/19134","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-07T19:12:45.568Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46872","url":"https://www.cve.org/CVERecord?id=CVE-2021-46872","licence":"CVE Terms of Use","modified":"2025-04-07T19:13:15.282Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46872","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46872","licence":"Public domain","modified":"2026-06-17T04:15:41.963Z"}],"updatedAt":"2026-11-25T22:58:08.123Z","epss":{"score":0.00583,"percentile":0.49244,"date":"2026-12-01T12:00:22.000Z"}}