CVE-2021-46872
Last modified
CVE-2021-46872 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.54% chance of exploitation in the next 30 days.
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:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nim-Lang | Nim | < 1.6.2 |
| Nim-Lang | Nimforum | < 2.2.0 |
References
- https://forum.nim-lang.org/t/8852Issue Tracking, Vendor Advisory
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7Patch, Third Party Advisory
- https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2Third Party Advisory
- https://github.com/nim-lang/Nim/pull/19134Patch, Third Party Advisory
- https://github.com/nim-lang/nimforumThird Party Advisory
- https://forum.nim-lang.org/t/8852Issue Tracking, Vendor Advisory
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7Patch, Third Party Advisory
- https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2Third Party Advisory
- https://github.com/nim-lang/Nim/pull/19134Patch, Third Party Advisory
- https://github.com/nim-lang/nimforumThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-46872?
How severe is CVE-2021-46872?
How do I fix CVE-2021-46872?
Are you affected by CVE-2021-46872?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
