CVE-2021-46872
mediumpriority · track · 24EPSS 0.006 · 47 %ileEUUSEPSS · scored 2026-10-27
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.)
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (16)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2021-46872/cnnvd
- https://forum.nim-lang.org/t/8852cnnvd
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7cnnvd
- https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2cnnvd
- https://github.com/nim-lang/Nim/pull/19134cnnvd
- https://github.com/nim-lang/nimforumcnnvd
- https://forum.nim-lang.org/t/8852enisa_euvd
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan