UBUNTU-CVE-2021-46872

Source
https://ubuntu.com/security/CVE-2021-46872
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-46872
Upstream
Published
2023-01-13T06:15:00Z
Modified
2026-05-20T16:05:26.127238964Z
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
  • 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
  • Ubuntu - medium
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

Ubuntu:16.04:LTS
nim

Package

Name
nim
Purl
pkg:deb/ubuntu/nim?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.11.2+dfsg1-4
0.12.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "nim",
            "binary_version": "0.12.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json"
Ubuntu:18.04:LTS
nim

Package

Name
nim
Purl
pkg:deb/ubuntu/nim?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.17.2-1ubuntu1
0.17.2-1ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "nim",
            "binary_version": "0.17.2-1ubuntu2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json"
Ubuntu:20.04:LTS
nim

Package

Name
nim
Purl
pkg:deb/ubuntu/nim?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.20.2-1
1.*
1.0.2-1
1.0.3~rc-1
1.0.4-1
1.0.6-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "nim",
            "binary_version": "1.0.6-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json"
Ubuntu:24.04:LTS
nim

Package

Name
nim
Purl
pkg:deb/ubuntu/nim?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.6.14-1
1.6.14-1ubuntu1
1.6.14-1ubuntu2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "nim",
            "binary_version": "1.6.14-1ubuntu2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json"
Ubuntu:25.10
nim

Package

Name
nim
Purl
pkg:deb/ubuntu/nim?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.6.14-1ubuntu2
2.*
2.2.4-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "nim",
            "binary_version": "2.2.4-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json"
Ubuntu:26.04:LTS
nim

Package

Name
nim
Purl
pkg:deb/ubuntu/nim?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.2.4-1
2.2.4-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "nim",
            "binary_version": "2.2.4-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46872.json"