CVEvulnerability
CVE-2021-46872
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2023-01-13
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
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.)
Affected configurations
• nim-lang nim (< 1.6.2)
• nim-lang nimforum (< 2.2.0)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://forum.nim-lang.org/t/8852 Issue Tracking, Vendor Advisory
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 Patch, Third Party Advisory
- https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 Third Party Advisory
- https://github.com/nim-lang/Nim/pull/19134 Patch, Third Party Advisory
- https://github.com/nim-lang/nimforum Third Party Advisory
- https://forum.nim-lang.org/t/8852 Issue Tracking, Vendor Advisory
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 Patch, Third Party Advisory
- https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 Third Party Advisory
- https://github.com/nim-lang/Nim/pull/19134 Patch, Third Party Advisory
- https://github.com/nim-lang/nimforum Third Party Advisory