[manjaro-security] [ASA-202105-9] hedgedoc: cross-site scripting

Jonas Witschel via arch-security arch-security at lists.archlinux.org
Thu May 20 20:05:37 CEST 2021

Arch Linux Security Advisory ASA-202105-9

Severity: High
Date    : 2021-05-19
CVE-ID  : CVE-2021-29503
Package : hedgedoc
Type    : cross-site scripting
Remote  : Yes
Link    : https://security.archlinux.org/AVG-1946


The package hedgedoc before version 1.8.2-1 is vulnerable to cross-site


Upgrade to 1.8.2-1.

# pacman -Syu "hedgedoc>=1.8.2-1"

The problem has been fixed upstream in version 1.8.2.


In order to prevent unauthenticated attacks it can be useful to disable
guest edits until the next update. To do this, set the following to
configuration options:

    # other configs
    # …
     "allowAnonymous": false,
     "allowAnonymousEdits": false,


Or set the environment variables CMD_ALLOW_ANONYMOUS=false and


HedgeDoc before version 1.8.2  is vulnerable to a cross-site scripting
(XSS) 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.

This vulnerability affects all installations. 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.


A remote attacker with write access to a note can inject arbitrary
JavaScript code that is executed through cross-site scripting when the
note is viewed.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.manjaro.org/pipermail/manjaro-security/attachments/20210520/e53d7cf0/attachment.sig>

More information about the manjaro-security mailing list