LiveActive security incident?Get immediate response
CVE Record

CVE-2021-29503: Improper Neutralization of Script-Related HTML Tags in Notes

HedgeDoc is a platform to write and share markdown. HedgeDoc before version 1.8.2 is vulnerable to a cross-site scripting attack using the YAML-metadata of a note. An attacker with write access to a note can embed HTML tags in the Open Graph metadata section of the note, resulting in the frontend rendering the script tag as part of the `<head>` section. Unless your instance prevents guests from editing notes, this vulnerability allows unauthenticated attackers to inject JavaScript into notes that allow guest edits. If your instance prevents guests from editing notes, this vulnerability allows authenticated attackers to inject JavaScript into any note pages they have write-access to. This vulnerability is patched in version 1.8.2. As a workaround, one can disable guest edits until the next update.

HighCVSS 8.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

HedgeDoc versions before 1.8.2 can let someone who can edit a note place JavaScript into note metadata. On guest-editable instances, this may include unauthenticated users. Successful abuse could expose user data or alter page behavior when a victim views the note.

Executive priority

Treat this as a high-priority web application fix if HedgeDoc is internet-facing or guest-editable. The patch is identified, and disabling guest edits is a practical interim control. Prioritize before broader content or configuration cleanup.

Technical view

CVE-2021-29503 is a CWE-80 cross-site scripting issue in HedgeDoc note YAML metadata. Open Graph metadata could render unsafe HTML into the page head. Affected versions are HedgeDoc before 1.8.2. CVSS 3.1 is 8.1, with network access, low complexity, and user interaction required.

Likely exposure

Exposure is limited to HedgeDoc deployments running versions earlier than 1.8.2. Risk is higher where notes allow guest editing, because the advisory says unauthenticated attackers may inject JavaScript into guest-editable notes.

Exploitation context

The provided sources do not show active exploitation, and this CVE is not marked KEV in the bundle. Exploitation requires a victim to view an affected note and requires note write access, unless guest editing is enabled.

Researcher notes

Focus validation on version, guest-edit configuration, and note write-access boundaries. The source bundle identifies the vulnerable path as YAML metadata used for Open Graph rendering into the head section. Do not assume other HedgeDoc branches or forks are affected without vendor evidence.

Mitigation direction

  • Upgrade HedgeDoc to version 1.8.2 or later.
  • Disable guest edits until the update is complete.
  • Review note permission settings for broad write access.
  • Check HedgeDoc vendor advisory and release notes for deployment-specific guidance.

Validation and detection

  • Inventory all HedgeDoc instances and record installed versions.
  • Confirm no production instance runs HedgeDoc before 1.8.2.
  • Verify guest editing is disabled where upgrade is pending.
  • Review exposed shared notes for unexpected metadata changes.
Prepared
Confidence
high
Sources
5

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-80: 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-29503 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
8.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/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
4Source 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
8.1CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N2.85.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

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

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/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
hedgedochedgedoc< 1.8.2Listed
Weakness

CWE details

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

CWE-80 · source CWE mapping

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.