6.1medium
An issue was discovered in Nim before 1.6.2.
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
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.)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| nim-lang nim | before 1.6.2 | NVD |
| nim-lang nimforum | before 2.2.0 | NVD |
All scores
| CISA-ADP | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.)
NVD (es)
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).
References
| https://github.com/nim-lang/nimforum | third-party-advisory | |
| https://forum.nim-lang.org/t/8852 | issue-tracking, vendor-advisory | |
| https://github.com/nim-lang/Nim/pull/19134 | patch, third-party-advisory | |
| https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 | third-party-advisory | |
| https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46872 changed 2025-04-07 | CVE Terms of Use |
| NVD | CVE-2021-46872 changed 2026-06-17 | Public domain |