CVEfocus › CVE database › CVE-2021-46872

CVE-2021-46872

CVSS 6.1 MediumEPSS 0.6% (higher than 42% of CVEs)Published 2023-01-13Updated 2025-04-07Assigner: mitre

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.)

CWE-79

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

2Fixed
1Fix pending
2Under investigation
4Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10nimFix pendingUBUNTU-CVE-2021-46872
Ubuntu 26.04nimUnder investigationUBUNTU-CVE-2021-46872
Ubuntu 25.10nimWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-46872
Ubuntu 24.04nimUnder investigationUBUNTU-CVE-2021-46872
Ubuntu 20.04nimWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-46872
Ubuntu 18.04nimWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-46872
Ubuntu 16.04nimWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-46872
Debian 14nimFixed1.6.2-1DEBIAN-CVE-2021-46872
Debian 12nimFixed1.6.2-1DEBIAN-CVE-2021-46872

References

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.