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

Published May 19, 2021
·
Updated

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.

Affected Software

1 affected component
HedgeDoc HedgeDoc<1.8.2

Event History

May 19, 2021
CVE Published
via MITRE·07:55 PM
Data Sourced
via MITRE·07:55 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2021-29503?

CVE-2021-29503 has a medium severity rating due to its potential for cross-site scripting attacks.

2

How do I fix CVE-2021-29503?

To fix CVE-2021-29503, upgrade HedgeDoc to version 1.8.2 or later.

3

Who is affected by CVE-2021-29503?

Users of HedgeDoc versions prior to 1.8.2 are affected by CVE-2021-29503.

4

What type of vulnerability is CVE-2021-29503?

CVE-2021-29503 is a cross-site scripting (XSS) vulnerability.

5

What can an attacker do with CVE-2021-29503?

An attacker with write access can embed malicious HTML in the Open Graph metadata, potentially compromising user sessions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203