XSS in Nim-Lang Nim
CVE-2021-46872
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.)
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.005 (43.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 43rd percentile — 43.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
Weakness classification (CWE)
References
- github.com/nim-lang/nimforum (Third Party Advisory)
- forum.nim-lang.org/t/8852 (Issue Tracking, Vendor Advisory)
- github.com/nim-lang/Nim/pull/19134 (Patch, Third Party Advisory)
- github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 (Third Party Advisory)
- github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-46872?
- CVE-2021-46872 is a medium-severity vulnerability in Nim-Lang Nim, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2023-01-13.
- How severe is CVE-2021-46872?
- Medium severity. CVSS v3 base score is 6.1 out of 10.