LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47842: StudyMD 0.3.2 - Persistent Cross-Site Scripting

StudyMD 0.3.2 contains a persistent cross-site scripting vulnerability that allows attackers to inject malicious scripts into markdown files. Attackers can upload crafted markdown files with embedded JavaScript payloads that execute when the file is opened, potentially enabling remote code execution.

HighCVSS 7.2Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

StudyMD 0.3.2 is reported to store and run attacker-supplied JavaScript embedded in markdown files. If your organization uses this tool and processes untrusted markdown, users could be exposed to browser-based compromise. Public exploit and proof-of-concept references exist, but the provided sources do not show active exploitation in the wild.

Executive priority

Treat as a targeted remediation item if StudyMD is in use. The business risk is highest for teams handling outside markdown files. If StudyMD is not deployed, no immediate action is needed beyond confirming absence.

Technical view

CVE-2021-47842 is a persistent cross-site scripting issue in jotron StudyMD 0.3.2, mapped to CWE-79 with CVSS 7.2. The vulnerability involves malicious scripts embedded in markdown files that execute when the file is opened. The source bundle mentions potential remote code execution, but the core supported issue is stored XSS.

Likely exposure

Exposure is likely limited to environments running StudyMD 0.3.2, especially where users upload, share, or open markdown files from untrusted sources. Organizations not using StudyMD are not affected based on the provided data.

Exploitation context

Exploit-DB and a proof-of-concept video are cited, indicating public exploit knowledge. The CVE is not listed as KEV in the provided bundle, and no cited source confirms active exploitation.

Researcher notes

The bundle supports StudyMD 0.3.2 as affected and includes public exploit references. Patch status is not provided. The CVSS vector lists UI:N, while the description says execution occurs when a file is opened; treat that as an evidence inconsistency.

Mitigation direction

  • Identify any use of StudyMD 0.3.2 in your environment.
  • Avoid opening markdown files from untrusted or unknown sources.
  • Restrict upload and sharing paths for StudyMD markdown content.
  • Check the StudyMD repository or vendor guidance for updates or fixes.
  • Consider replacing StudyMD if no maintained fixed version is available.

Validation and detection

  • Confirm whether StudyMD is installed and record the exact version.
  • Review workflows where users upload or open markdown files.
  • Check repositories and shared folders for untrusted StudyMD markdown content.
  • Review available vendor or project documentation for remediation status.
  • Document compensating controls if continued use is required.
Prepared
Confidence
medium
Sources
6

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
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-47842 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
High
CVSS
7.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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
5Source 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
7.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N3.92.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.2High
CVSS 3.1 vector shape for CVE-2021-47842Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
jotronStudyMD0.3.2Listed
Weakness

CWE details

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