# CVE-2022-31059: Discourse Calendar Event names susceptible to Cross-site Scripting

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2022-06-14T19:55:10.000Z
- Modified: 2026-06-17T04:44:42.560Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- discourse discourse-calendar: < 1.0.1
- discourse discourse_calendar: before 1.0.1

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:N/AC:H/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/discourse/discourse-calendar/security/advisories/GHSA-c783-x9vm-xxp5> (third-party-advisory)
- <https://github.com/discourse/discourse-calendar/pull/280> (issue-tracking, patch, third-party-advisory)
- <https://github.com/discourse/discourse-calendar/commit/2719b9e81994e961bf8c4e12b4556dc9777dd62f> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-31059](https://www.cve.org/CVERecord?id=CVE-2022-31059), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-31059](https://nvd.nist.gov/vuln/detail/CVE-2022-31059), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31059 · Whole record: https://cve.day/CVE-2022-31059.json · Rebuilt by cve.day 2026-11-25T22:58:12.319Z
