CVE-2021-46872

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-46872
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-46872.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-46872
Downstream
Published
2023-01-13T06:15:10.940Z
Modified
2025-11-27T03:12:32.093987Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/nim-lang/nim

Affected ranges

Type
GIT
Repo
https://github.com/nim-lang/nim
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.10.2
v0.11.0
v0.11.2
v0.12.0
v0.13.0
v0.14.0
v0.14.2
v0.15.0
v0.15.2
v0.16.0
v0.17.0
v0.17.2
v0.18.0
v0.19.0
v0.20.0
v0.8.14
v0.9.0
v0.9.2
v0.9.4
v0.9.6

v1.*

v1.0.0
v1.6.0

Git / github.com/nim-lang/nimforum

Affected ranges

Type
GIT
Repo
https://github.com/nim-lang/nimforum
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v2.*

v2.0.0
v2.0.1
v2.1.0