{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-43827","published":"2021-12-14T23:15:08.020000Z","last_modified":"2026-06-17T04:11:31.367000Z","status":"Modified","cvss":{"version":"3.1","score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-755"],"cpes":[{"criteria":"cpe:2.3:a:discourse:discourse_footnote:*:*:*:*:*:discourse:*:*","part":"a","vendor":"discourse","product":"discourse_footnote","version_end_excluding":"0.2"}],"cpes_truncated":false,"vendors":["discourse"],"products":["discourse/discourse_footnote"],"epss":{"score":0.00829,"percentile":0.54759,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":26,"links":{"html_es":"/es/cve/CVE-2021-43827/","html_en":"/en/cve/CVE-2021-43827/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-43827","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-43827"},"untrusted":{"vendor_name":"Discourse","product_name":"Discourse Footnote","desc_en":"discourse-footnote is a library providing footnotes for posts in Discourse. ### Impact When posting an inline footnote wrapped in `<a>` tags (e.g. `<a>^[footnote]</a>`, the resulting rendered HTML would include a nested `<a>`, which is stripped by Nokogiri because it is not valid. This then caused a javascript error on topic pages because we were looking for an `<a>` element inside the footnote reference span and getting its ID, and because it did not exist we got a null reference error in javascript. Users are advised to update to version 0.2. As a workaround editing offending posts from the rails console or the database console for self-hosters, or disabling the plugin in the admin panel can mitigate this issue.","affected":[{"untrusted_vendor":"discourse","untrusted_product":"discourse-footnote","versions":[]}],"references":[{"url":"https://github.com/discourse/discourse-footnote/commit/796617e0131277011207541313522cd1946661ab","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/discourse/discourse-footnote/security/advisories/GHSA-58vr-c56v-qr57","tags":["Third Party Advisory"]}]}}