Skip to content

fix: add output encoding in MMM-CalendarExtMiniMonth.js (CWE-79) - #23

Open
anupamme wants to merge 1 commit into
MagicMirrorModules:mainfrom
anupamme:fix-repo-mmm-calendarextminimonth-cwe-79-sanitize-event-title
Open

anupamme wants to merge 1 commit into
MagicMirrorModules:mainfrom
anupamme:fix-repo-mmm-calendarextminimonth-cwe-79-sanitize-event-title

Conversation

@anupamme

@anupamme anupamme commented Oct 2, 2026

Copy link
Copy Markdown

The updateContentFromCalendarEvents function processes calendar event data from external sources and stores event titles without any sanitization. The event.title field flows directly from untrusted calendar sources (Google Calendar, CalDAV, ICS feeds) into the application's data model and is later rendered in the DOM, creating a stored XSS vulnerability. The affected code is MMM-CalendarExtMiniMonth.js:165. This change is the fix I would apply.

Reference: CWE-79

What changed

  • MMM-CalendarExtMiniMonth.js

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant