
CVE catalog
CVE-2021-46872
nim affected and fixed versions
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 / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiansid | nim | 1.6.2-1 | FixedDistribution-reported fixed boundary | [CVE-2021-46872] |
| Debiansid | nim | 2.2.12-1 | Fixed | [CVE-2021-46872] |
| Debianforky | nim | 1.6.2-1 | FixedDistribution-reported fixed boundary | [CVE-2021-46872] |
| Debianforky | nim | 2.2.12-1 | Fixed | [CVE-2021-46872] |
| Debianbookworm | nim | 1.6.10-2 | Fixed | [CVE-2021-46872] |
| Debianbookworm | nim | 1.6.2-1 | FixedDistribution-reported fixed boundary | [CVE-2021-46872] |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | nim | 1.6.10-2 | Fixed | [CVE-2021-46872] |
| Debianbookworm | nim | 1.6.2-1 | FixedDistribution-reported fixed boundary | [CVE-2021-46872] |
| Debianforky | nim | 1.6.2-1 | FixedDistribution-reported fixed boundary | [CVE-2021-46872] |
| Debianforky | nim | 2.2.12-1 | Fixed | [CVE-2021-46872] |
| Debiansid | nim | 1.6.2-1 | FixedDistribution-reported fixed boundary | [CVE-2021-46872] |
| Debiansid | nim | 2.2.12-1 | Fixed | [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 · bookwormFixed · Fixed:
1.6.2-1dsa · nim · debian · bookworm; dsa · nim · debian · 12
1.6.10-2· arm64 · bookwormFixed · Fixed:
1.6.2-1dsa · nim · debian · bookworm; dsa · nim · debian · 12
- [nim-doc]Unknown
Source package: [nim]
Details (2)
1.6.10-2· all · bookwormFixed · Fixed:
1.6.2-1dsa · nim · debian · bookworm; dsa · nim · debian · 12
1.6.10-2· all · bookwormFixed · Fixed:
1.6.2-1dsa · nim · debian · bookworm; dsa · nim · debian · 12
Observed: