CVE catalog

CVE-2021-46872

nim affected and fixed versions

[CVE catalog]

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

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.56% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiansidnim1.6.2-1FixedDistribution-reported fixed boundary[CVE-2021-46872]
Debiansidnim2.2.12-1Fixed[CVE-2021-46872]
Debianforkynim1.6.2-1FixedDistribution-reported fixed boundary[CVE-2021-46872]
Debianforkynim2.2.12-1Fixed[CVE-2021-46872]
Debianbookwormnim1.6.10-2Fixed[CVE-2021-46872]
Debianbookwormnim1.6.2-1FixedDistribution-reported fixed boundary[CVE-2021-46872]
Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Debianbookwormnim1.6.10-2Fixed[CVE-2021-46872]
Debianbookwormnim1.6.2-1FixedDistribution-reported fixed boundary[CVE-2021-46872]
Debianforkynim1.6.2-1FixedDistribution-reported fixed boundary[CVE-2021-46872]
Debianforkynim2.2.12-1Fixed[CVE-2021-46872]
Debiansidnim1.6.2-1FixedDistribution-reported fixed boundary[CVE-2021-46872]
Debiansidnim2.2.12-1Fixed[CVE-2021-46872]
Original provider fields
{
  "package_releases": [
    {
      "name": "nim",
      "status": "fixed",
      "release": "sid",
      "version": "2.2.12-1"
    },
    {
      "name": "nim",
      "status": "fixed",
      "release": "forky",
      "version": "2.2.12-1"
    },
    {
      "name": "nim",
      "status": "fixed",
      "release": "bookworm",
      "version": "1.6.10-2"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "nim",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "1.6.2-1"
    },
    {
      "bug": null,
      "name": "nim",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "1.6.2-1"
    },
    {
      "bug": null,
      "name": "nim",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "1.6.2-1"
    }
  ],
  "distribution_packages": []
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [nim]Unknown
    Details (2)
    • 1.6.10-2 · amd64 · bookworm

      Fixed · Fixed: 1.6.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

    • 1.6.10-2 · arm64 · bookworm

      Fixed · Fixed: 1.6.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

  • [nim-doc]Unknown

    Source package: [nim]

    Details (2)
    • 1.6.10-2 · all · bookworm

      Fixed · Fixed: 1.6.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

    • 1.6.10-2 · all · bookworm

      Fixed · Fixed: 1.6.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

Observed:

References