CVE-2021-29503

High

Description

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.

SeverityHigh
CVSS8.1
Exploit probability—
ProductHedgedoc
PublishedMay 19, 2021
First seenMay 19, 2021
Weakness typeCWE-80CWE-80

How to fix

Update
  • hedgedoc hedgedoc1.8.2 or later

Affected products

ProductAffected versionsFixed in
hedgedoc hedgedocv < 1.8.21.8.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.