AI Security Summit: Join Figma, Perplexity & Wiz. [Register]

CVE-2021-29475
NixOS vulnerability analysis and mitigation

Overview

HedgeDoc (formerly known as CodiMD), an open-source collaborative markdown editor, was found to contain a critical vulnerability (CVE-2021-29475) that was disclosed on April 26, 2021. The vulnerability allows attackers with note modification capabilities to extract arbitrary files from the system when using the PDF export feature. This affects all instances with PDF export enabled prior to version 1.5.0 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper handling of file:/// references in PhantomJS during PDF export operations. While PhantomJS doesn't render these references in the PDF output, it processes them internally, allowing for data exfiltration through JavaScript rendering. The vulnerability has been assigned a CVSS v3.1 base score of 10.0 (Critical), with attack vector: Network, attack complexity: Low, privileges required: None, user interaction: None, scope: Changed, and high impacts on both confidentiality and integrity (NVD).

Impact

The vulnerability enables attackers to read sensitive files from the filesystem, including the HedgeDoc config.json file which often contains critical information such as database credentials and OAuth secrets. Even in Docker deployments, while the accessible files might be limited, the exposure of configuration files poses significant security risks (GitHub Advisory).

Exploitability

Exploitation requires the attacker to have the ability to modify a note and use the PDF export feature. The attack involves creating a note with malicious JavaScript code that, when exported to PDF, can read and exfiltrate arbitrary files from the system. The exploit leverages PhantomJS's internal processing of file:/// references to access system files (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in HedgeDoc version 1.5.0. For users unable to upgrade, a workaround is available by disabling the PDF export feature. This can be done by either starting the HedgeDoc instance with CMD_ALLOW_PDF_EXPORT=false or setting "allowPDFExport": false in config.json (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-85706CRITICAL10
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
YesYesSep 12, 2026
CVE-2026-88009HIGH8.8
  • NixOS logoNixOS
  • traefik-3
NoYesSep 10, 2026
CVE-2026-88008HIGH7
  • NixOS logoNixOS
  • traefik
NoYesSep 10, 2026
CVE-2026-88012MEDIUM5.3
  • NixOS logoNixOS
  • cpe:2.3:a:traefik:traefik
NoYesSep 10, 2026
CVE-2026-88011MEDIUM5.3
  • NixOS logoNixOS
  • traefik-fips-3
NoYesSep 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management