An issue was discovered in Nim before 1.6.2.
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-79.
Summary
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.)
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-46872
- 2026-10-03 Alias added: GHSA-6fm4-9v93-v7gg
References
More nim-lang Nim vulnerabilities
- TI-2020-12364 In Nim 1.2.4, the standard library browsers mishandles the URL argument to… CVSS 3.1CRITICAL 9.8
- TI-2020-12363 In Nim before 1.2.6, the standard library asyncftpclient lacks a check for whether a… CVSS 3.1CRITICAL 9.8
- TI-2021-04471 Nimble arbitrary code execution for specially crafted package metadata CVSS 3.1HIGH 8.8
- TI-2021-04473 Nimble fails to validate certificates due to insecure httpClient defaults CVSS 3.1HIGH 8.1
- TI-2020-12366 In Nim 1.2.4, the standard library httpClient fails to properly validate the server… CVSS 3.1HIGH 7.5
- TI-2021-04472 Nimble falls back to insecure http url when fetching packages CVSS 3.1HIGH 7.5
Sources
- CVE-2021-46872 · CVE Program
- CVE-2021-46872 · NVD
- FIRST EPSS
- GHSA-6fm4-9v93-v7gg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences