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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-289
- **Published:** 2023-08-04T15:40:16.370Z
- **Modified:** 2026-06-17T06:10:17.137Z

## Who should check

- Anyone running hedgedoc \< 1.9.9

## Description

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 \`CMD\_ALLOW\_FREEURL\` 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\`/\`CMD\_REQUIRE\_FREEURL\_AUTHENTICATION\`.

## Affected and fixed versions

- hedgedoc: \< 1.9.9 (cvelist)

## Mitigation

- Upgrade hedgedoc to 1.9.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-38487. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-38487.md
Affected: hedgedoc < 1.9.9
Fixed in: hedgedoc 1.9.9

Steps:
1. Search this machine and project for hedgedoc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-38487 being exploited?

There is no confirmed exploitation: CVE-2023-38487 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-38487?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-38487?

hedgedoc \< 1.9.9.

### Is there a fix for CVE-2023-38487?

Yes. Fixed in hedgedoc 1.9.9. Upgrade hedgedoc to 1.9.9 or later.

### How do I check if I'm affected by CVE-2023-38487?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-7494-7hcf-vxpg>
- patch: <https://github.com/hedgedoc/hedgedoc/pull/4476/commits/781263ab84255885e1fe60c7e92e2f8d611664d2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-38487>

HTML: <https://flawdb.com/CVE-2023-38487> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-38487>
