Lucene search

K
cve[email protected]CVE-2021-43827
HistoryDec 14, 2021 - 11:15 p.m.

CVE-2021-43827

2021-12-1423:15:08
CWE-755
web.nvd.nist.gov
19
discourse-footnote
cve-2021-43827
security update
<a> tag
nokogiri
javascript error
self-hosters

4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:N/I:N/A:P

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.6 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.

Affected configurations

Vulners
NVD
Node
discoursediscourse_footnoteRange<0.2
VendorProductVersionCPE
discoursediscourse_footnote*cpe:2.3:a:discourse:discourse_footnote:*:*:*:*:*:*:*:*

CNA Affected

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

4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:N/I:N/A:P

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.6 Medium

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

32.8%

Related for CVE-2021-43827