CVE-2021-46872

Source
https://cve.org/CVERecord?id=CVE-2021-46872
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46872.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-46872
Downstream
Published
2023-01-13T06:15:10.940Z
Modified
2026-07-09T02:48:58.586775Z
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
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.6.2"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

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
v1.*
v1.0.0
v1.6.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46872.json"

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
Database specific
{
    "cpe": "cpe:2.3:a:nim-lang:nimforum:*:*:*:*:*:nim:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.2.0"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

v2.*
v2.0.0
v2.0.1
v2.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46872.json"