SecurityContext

CVE-2021-43827: discourse-footnote - Stored XSS

  • Cve: CVE-2021-43827
  • Name: discourse-footnote - Stored XSS
  • Description: 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.
  • Impact: JavaScript errors on topic pages can disrupt user experience and functionality, potentially affecting site usability.
  • Remediation: Update to version 0.2 or later. As a workaround, edit offending posts or disable the plugin in the admin panel.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: User needs to post inline footnotes wrapped in <a> tags
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
  • Epss score: 0.00829
  • Epss percentile: 0.5828
  • Assignee: [email protected]
  • Published at: 2021-12-14T23:15:08Z
  • Age in days: 1806
  • Modified at: 2026-06-17T04:11:31Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-43827
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-755Improper Handling of Exceptional Conditions

References

UrlSourceTags
https://github.com/discourse/discourse-footnote/commit/796617e0131277011207541313522cd1946661abnvdPatch, Third Party Advisory
https://github.com/discourse/discourse-footnote/security/advisories/GHSA-58vr-c56v-qr57nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
discourse:discourse_footnote< 0.2nonvd/v1/products/discourse/discourse_footnote

Projects

RepositoryLink kindsIndexedUrl
discourse/discourse-footnotecommit, fix, security_advisoryyes/v1/repositories/discourse/discourse-footnote

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts