CVE-2021-46872Nim-lang Nim
Medium 6.1 No auth needed
Follow: this CVE · Nim-lang · Nim-lang Nim We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 42
- Auth required
- No
- Published
- Jan 13, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.)
What to do
- Apply the vendor's security update for Nim.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nim-lang | nim | < 1.6.2 |
| nim-lang | nimforum | < 2.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- forum.nim-lang.org Issue Tracking Vendor Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory