LiveActive security incident?Get immediate response
CVE Record

CVE-2021-46872: An issue was discovered in Nim before 1.6.2.

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

MediumCVSS 6.1Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-46872 is a cross-site scripting risk in Nim's standard-library RST handling before Nim 1.6.2. Applications that render untrusted RST content could allow a malicious link scheme through. Business urgency is moderate: it can affect users through web content, but the record requires user interaction and does not show known active exploitation.

Executive priority

Treat this as a moderate-priority web content safety issue. Prioritize remediation where public users can submit RST content or where NimForum is exposed externally. It is less urgent than a server-side remote code execution issue, but still relevant for user trust and session protection.

Technical view

The Nim RST module permitted the javascript: URI scheme, creating CWE-79 XSS exposure in some applications using it, including NimForum. Nim 1.6.2 and later are fixed, with possible backports to earlier versions. NimForum 2.2.0 is fixed. CVSS is 6.1, network reachable, low complexity, no privileges, user interaction required.

Likely exposure

Exposure is likely limited to Nim applications that use the stdlib RST module to render user-controlled content. NimForum versions before 2.2.0 are specifically named. The source bundle does not enumerate other affected products or package identifiers.

Exploitation context

No source in the bundle reports active exploitation, and KEV is false. Exploitation depends on an application rendering attacker-controlled RST and a user interacting with resulting content. Impact is confidentiality and integrity through browser-side script execution, not direct server takeover.

Researcher notes

Focus assessment on trust boundaries around RST rendering. The CVE record gives fixed versions but incomplete affected-product enumeration. Avoid assuming every Nim application is vulnerable; validate actual use of the RST module and whether rendered output reaches browsers.

Mitigation direction

  • Upgrade Nim to 1.6.2 or later where the RST fix is included.
  • Upgrade NimForum to 2.2.0 or later if deployed.
  • Check vendor guidance for supported backports on older Nim branches.
  • Audit RST rendering paths that accept user-controlled content.
  • Apply strict URI scheme allowlists in application-level rendering controls.

Validation and detection

  • Inventory deployed Nim versions and identify any before 1.6.2.
  • Identify applications using Nim stdlib RST with user-submitted content.
  • Confirm NimForum deployments are version 2.2.0 or later.
  • Review rendered links to ensure unsafe URI schemes are rejected.
  • Document any older-version backport evidence from maintainers.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-46872 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.1CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N2.82.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.1Medium
CVSS 3.1 vector shape for CVE-2021-46872Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.