CVE-2023-38487: HedgeDoc API allows to hide existing notes

Published Aug 4, 2023
·
Updated

HedgeDoc is software for creating real-time collaborative markdown notes. Prior to version 1.9.9, the API of HedgeDoc 1 can be used to create notes with an alias matching the ID of existing notes. The affected existing note can then not be accessed anymore and is effectively hidden by the new one.

When the freeURL feature is enabled (by setting the allowFreeURL config option or the CMDALLOWFREEURL environment variable to true), any user with the appropriate permissions can create a note by making a POST request to the /new/<ALIAS> API endpoint. The <ALIAS> parameter can be set to the ID of an existing note. HedgeDoc did not verify whether the provided <ALIAS> value corresponds to a valid ID of an existing note and always allowed creation of the new note. When a visitor tried to access the existing note, HedgeDoc will first search for a note with a matching alias before it searches using the ID, therefore only the new note can be accessed.

Depending on the permission settings of the HedgeDoc instance, the issue can be exploited only by logged-in users or by all (including non-logged-in) users. The exploit requires knowledge of the ID of the target note. Attackers could use this issue to present a manipulated copy of the original note to the user, e.g. by replacing the links with malicious ones. Attackers can also use this issue to prevent access to the original note, causing a denial of service. No data is lost, as the original content of the affected notes is still present in the database.

This issue was fixed in version 1.9.9. As a workaround, disabling freeURL mode prevents the exploitation of this issue. The impact can be limited by restricting freeURL note creation to trusted, logged-in users by enabling requireFreeURLAuthentication/CMDREQUIREFREEURLAUTHENTICATION.

Affected Software

1 affected component
HedgeDoc HedgeDoc<1.9.9

Event History

Aug 4, 2023
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness
Data Sourced
04:15 PM
DescriptionWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-38487?

CVE-2023-38487 is classified as a moderate severity vulnerability.

2

How do I fix CVE-2023-38487?

To fix CVE-2023-38487, upgrade HedgeDoc to version 1.9.9 or later.

3

What systems are affected by CVE-2023-38487?

CVE-2023-38487 affects all versions of HedgeDoc prior to 1.9.9.

4

What type of vulnerability is CVE-2023-38487?

CVE-2023-38487 is an API vulnerability that allows notes to be hidden by creating an alias.

5

What are the potential impacts of CVE-2023-38487?

The potential impact of CVE-2023-38487 is that important notes can become inaccessible and effectively hidden.

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