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.)
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | nim | Fix pending | UBUNTU-CVE-2021-46872 | |
| Ubuntu 26.04 | nim | Under investigation | UBUNTU-CVE-2021-46872 | |
| Ubuntu 25.10 | nim | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-46872 | |
| Ubuntu 24.04 | nim | Under investigation | UBUNTU-CVE-2021-46872 | |
| Ubuntu 20.04 | nim | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-46872 | |
| Ubuntu 18.04 | nim | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-46872 | |
| Ubuntu 16.04 | nim | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-46872 | |
| Debian 14 | nim | Fixed | 1.6.2-1 | DEBIAN-CVE-2021-46872 |
| Debian 12 | nim | Fixed | 1.6.2-1 | DEBIAN-CVE-2021-46872 |
References
- https://github.com/nim-lang/nimforum
- https://forum.nim-lang.org/t/8852
- https://github.com/nim-lang/Nim/pull/19134
- https://github.com/nim-lang/Nim/compare/v1.6.0...v1.6.2
- https://github.com/nim-lang/Nim/commit/46275126b89218e64844eee169e8ced05dd0e2d7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.