CVE-2022-31059
JSON

6.5medium

Discourse Calendar Event names susceptible to Cross-site Scripting

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.77% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Discourse Calendar is a calendar plugin for Discourse, an open-source messaging app. Prior to version 1.0.1, parsing and rendering of Event names can be susceptible to cross-site scripting (XSS) attacks. This vulnerability only affects sites which have modified or disabled Discourse’s default Content Security Policy. This issue is patched in version 1.0.1 of the Discourse Calendar plugin. As a workaround, ensure that the Content Security Policy is enabled, and has not been modified in a way which would make it more vulnerable to XSS attacks.

Affected

Product or packageVersionsReported by
discourse discourse-calendar< 1.0.1CVE List
discourse discourse_calendarbefore 1.0.1NVD

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD2.1low CVSS:2.0AV:N/AC:H/Au:S/C:N/I:P/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Discourse Calendar is a calendar plugin for Discourse, an open-source messaging app. Prior to version 1.0.1, parsing and rendering of Event names can be susceptible to cross-site scripting (XSS) attacks. This vulnerability only affects sites which have modified or disabled Discourse’s default Content Security Policy. This issue is patched in version 1.0.1 of the Discourse Calendar plugin. As a workaround, ensure that the Content Security Policy is enabled, and has not been modified in a way which would make it more vulnerable to XSS attacks.

NVD (es)

Discourse Calendar es un plugin de calendario para Discourse, una aplicación de mensajería de código abierto. En versiones anteriores a 1.0.1, el análisis y la representación de los nombres de los eventos pueden ser susceptibles de ataques de tipo cross-site scripting (XSS). Esta vulnerabilidad sólo afecta a sitios que han modificado o deshabilitado la Política de Seguridad de Contenidos por defecto de Discourse. Este problema está parcheado en versión 1.0.1 del plugin Calendario de Discourse. Como mitigación, asegúrese de que la política de seguridad de contenidos está habilitada y no ha sido modificada de forma que sea más vulnerable a ataques de tipo XSS

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31059 changed 2025-04-23CVE Terms of Use
NVDCVE-2022-31059 changed 2026-06-17Public domain