CVE-2021-46872 json
An issue was discovered in Nim before 1.6.2.
published 2023-01-13 3 y ago modified 2026-06-17 4 mo ago also EUVD-2021-33525
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
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.)
Patch / fix
- nim-lang nim 1.6.2
- nim-lang nimforum 2.2.0
- nim Debian 14, Debian 12 1.6.2-1
debian advisories DEBIAN-CVE-2021-46872
- github.com/nim-lang/Nim@4627512 commit
- github.com/nim-lang/Nim#19134 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/nim-lang/Nim/pull/19134
patch, third-party-advisory
-
github.com
/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7
patch, third-party-advisory
-
forum.nim-lang.org
/t/8852
issue-tracking, vendor-advisory
-
github.com
/nim-lang/nimforum
third-party-advisory
-
github.com
/nim-lang/Nim/compare/v1.6.0...v1.6.2
third-party-advisory
Sources
- CVE List CVE-2021-46872
- NVD CVE-2021-46872
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.