{"api_version":"1","generated_at":"2026-07-14T13:26:09+00:00","cve":"CVE-2021-39175","urls":{"html":"https://cve.report/CVE-2021-39175","api":"https://cve.report/api/cve/CVE-2021-39175.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-39175","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-39175"},"summary":{"title":"CVE-2021-39175","description":"HedgeDoc is a platform to write and share markdown. In versions prior to 1.9.0, an unauthenticated attacker can inject arbitrary JavaScript into the speaker-notes of the slide-mode feature by embedding an iframe hosting the malicious code into the slides or by embedding the HedgeDoc instance into another page. The problem is patched in version 1.9.0. There are no known workarounds aside from upgrading.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-08-30 21:15:00","updated_at":"2022-10-25 18:01:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/hedgedoc/hedgedoc/pull/1375","name":"https://github.com/hedgedoc/hedgedoc/pull/1375","refsource":"MISC","tags":[],"title":"Disable GA and Disqus in default CSP by davidmehren · Pull Request #1375 · hedgedoc/hedgedoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/hedgedoc/hedgedoc/pull/1369","name":"https://github.com/hedgedoc/hedgedoc/pull/1369","refsource":"MISC","tags":[],"title":"Remove unsafe-eval from default CSP by davidmehren · Pull Request #1369 · hedgedoc/hedgedoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-j748-779h-9697","name":"https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-j748-779h-9697","refsource":"CONFIRM","tags":[],"title":"XSS vector in slide mode speaker-view · Advisory · hedgedoc/hedgedoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/hedgedoc/hedgedoc/pull/1513","name":"https://github.com/hedgedoc/hedgedoc/pull/1513","refsource":"MISC","tags":[],"title":"Tighten up Content-Security-Policy by davidmehren · Pull Request #1513 · hedgedoc/hedgedoc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-39175","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39175","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"39175","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"hedgedoc","cpe5":"hedgedoc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-39175","STATE":"PUBLIC","TITLE":"XSS vector in slide mode speaker-view"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"hedgedoc","version":{"version_data":[{"version_value":"< 1.9.0"}]}}]},"vendor_name":"hedgedoc"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"HedgeDoc is a platform to write and share markdown. In versions prior to 1.9.0, an unauthenticated attacker can inject arbitrary JavaScript into the speaker-notes of the slide-mode feature by embedding an iframe hosting the malicious code into the slides or by embedding the HedgeDoc instance into another page. The problem is patched in version 1.9.0. There are no known workarounds aside from upgrading."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"}]},{"description":[{"lang":"eng","value":"CWE-346: Origin Validation Error"}]}]},"references":{"reference_data":[{"name":"https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-j748-779h-9697","refsource":"CONFIRM","url":"https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-j748-779h-9697"},{"name":"https://github.com/hedgedoc/hedgedoc/pull/1369","refsource":"MISC","url":"https://github.com/hedgedoc/hedgedoc/pull/1369"},{"name":"https://github.com/hedgedoc/hedgedoc/pull/1375","refsource":"MISC","url":"https://github.com/hedgedoc/hedgedoc/pull/1375"},{"name":"https://github.com/hedgedoc/hedgedoc/pull/1513","refsource":"MISC","url":"https://github.com/hedgedoc/hedgedoc/pull/1513"}]},"source":{"advisory":"GHSA-j748-779h-9697","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-08-30 21:15:00","lastModifiedDate":"2022-10-25 18:01:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:hedgedoc:hedgedoc:*:*:*:*:*:*:*:*","versionEndExcluding":"1.9.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"39175","Ordinal":"214834","Title":"CVE-2021-39175","CVE":"CVE-2021-39175","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"39175","Ordinal":"1","NoteData":"HedgeDoc is a platform to write and share markdown. In versions prior to 1.9.0, an unauthenticated attacker can inject arbitrary JavaScript into the speaker-notes of the slide-mode feature by embedding an iframe hosting the malicious code into the slides or by embedding the HedgeDoc instance into another page. The problem is patched in version 1.9.0. There are no known workarounds aside from upgrading.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"39175","Ordinal":"2","NoteData":"2021-08-30","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"39175","Ordinal":"3","NoteData":"2021-08-30","Type":"Other","Title":"Modified"}]}}}