Lucene search

K
cvelistGitHub_MCVELIST:CVE-2021-43827
HistoryDec 14, 2021 - 10:20 p.m.

CVE-2021-43827 Inline footnotes wrapped in <a> tags can cause errors in discourse-footnotes

2021-12-1422:20:09
CWE-755
GitHub_M
www.cve.org

4.3 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

4.9 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

32.8%

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.

CNA Affected

[
  {
    "product": "discourse-footnote",
    "vendor": "discourse",
    "versions": [
      {
        "status": "affected",
        "version": "< 0.2"
      }
    ]
  }
]

4.3 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

4.9 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

32.8%

Related for CVELIST:CVE-2021-43827