Vulnerabilities · 2021 · Nim-lang
CVE-2021-46872
Nim-lang Nim vulnerability
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 products
Nim, Nimforum. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nim-lang Nim runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- forum.nim-lang.org/t/8852 · Vendor Advisory
- github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7 · Patch
- github.com/nim-lang/Nim/pull/19134 · Patch
- github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2 · Third Party Advisory
- github.com/nim-lang/nimforum · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-46872
- cve.org/CVERecord?id=CVE-2021-46872
More vulnerabilities in Nim-lang products
CVE-2022-23602CVE-2021-29495CVE-2021-21374CVE-2021-21373CVE-2021-21372CVE-2020-23171CVE-2020-15694CVE-2020-15693All 11
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.