Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
CVE-2021-46872 Details
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.)
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 7, 2025Exploitation: NoneAutomatable: NoTechnical Impact: Partial
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://forum.nim-lang.org/t/8852 | CVE | Issue TrackingVendor Advisory |
| https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 | CVE | PatchThird Party Advisory |
| https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 | CVE | Third Party Advisory |
| https://github.com/nim-lang/nimforum | CVE | Third Party Advisory |
| https://github.com/nim-lang/Nim/pull/19134 | CVE | PatchThird Party Advisory |
| https://forum.nim-lang.org/t/8852 | [email protected] | Issue TrackingVendor Advisory |
| https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 | [email protected] | PatchThird Party Advisory |
| https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 | [email protected] | Third Party Advisory |
| https://github.com/nim-lang/nimforum | [email protected] | Third Party Advisory |
| https://github.com/nim-lang/Nim/pull/19134 | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| nim-lang nim | < 1.6.2 |
CPE
Remediation
| |
| nim-lang nimforum | < 2.2.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 7, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jan 23, 2023 | Initial Analysis | [email protected] |