Skip to main content

flask-calendar EUVDEUVD-2026-131650

| CVE-2026-133876 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 VulnCheck GHSA-5429-vgcp-rr38
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as shared-calendar member
  2. Delivery
    Store script payload in task details
  3. Exploit
    Victim member views calendar
  4. Execution
    Payload executes in victim browser
  5. Impact
    Read and modify victim's private calendars

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) an account that is an authenticated member of a shared calendar (PR:L - this is not available to anonymous visitors), (2) the shared-calendar/multi-member feature actually in use, since the impact is cross-user, and (3) a second member opening the calendar view that renders the attacker-controlled task details (UI:P/UI:R - the payload only fires when a victim views it). The concrete flawed component is task_details_for_markup in app_utils.py, whose output was rendered in calendar.html line 80 via Jinja's |safe filter without HTML escaping; any installation running flask-calendar before commit bfde72e with the stored details path is affected. These factors - required authentication, required shared/multi-user deployment, and required victim interaction - meaningfully limit realistic exploitation to multi-tenant self-hosted instances; a single-user deployment has no victim to attack.

Impact

This is a moderate-severity stored XSS (CVSS 4.0 base 5.1, vector AV:N/AC:L/AT:N/PR:L/UI:P) whose real-world priority is low-to-moderate despite a network attack vector. Multiple limiting signals converge: PR:L means the attacker must already be an authenticated, provisioned member of a shared calendar, and UI:P means a victim member must view the poisoned task details for the payload to fire - so this is not drive-by, unauthenticated compromise. No EPSS score was supplied in the input and the vulnerability is not on CISA KEV, so there is no evidence of active exploitation; the vuln.today decision label is 'this_month' rather than act_now/emergency, consistent with a fixable, non-emergency issue. No public exploit identified at time of analysis - the references are a GitHub issue, the repository, the fix commit, a template line, and a VulnCheck advisory, none of which is confirmed working exploit code. The dominant risk reducer is deployment footprint: flask-calendar is a small self-hosted open-source project, so even though the bug is technically straightforward, the population of exposed, multi-member installations is small. Net: a legitimately exploitable stored XSS in multi-user deployments, but a patch-this-month item, not a widespread emergency.

Exploit ScenarioDerived

An authenticated member of a shared flask-calendar saves a task whose details field contains a script payload (e.g. an <img onerror> or <script> tag); because task_details_for_markup returned unescaped content rendered with Jinja's |safe filter, the markup is stored verbatim. When another member of the same shared calendar opens the calendar view, the script executes in their browser session, letting the attacker read and modify that victim's private calendar data. No public working exploit is identified, though the mechanism is documented in GitHub issue #223 and the VulnCheck advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Stored cross-site scripting in Kartones flask-calendar lets an authenticated member of a shared calendar persist attacker-controlled HTML/JavaScript in task details, which then executes in the browsers of other calendar members and can be used to read and modify their private calendars. Every installation built before commit bfde72e is affected, but exploitation requires a real account on a multi-member shared calendar plus a second member opening the calendar view that renders the payload (CVSS 4.0 base 5.1; independent assessment CVSS 3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), so single-user self-hosted deployments have no victim to attack. An upstream fix commit is published (bfde72e3822a2584ae5afebae174a3c1c8593f9); no public exploit code and no confirmed active exploitation were identified at time of analysis, and the issue is tracked as a this-month priority item rather than an emergency.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - update to commit bfde72eb3822a2584ae5afebae174a3c1c8593f9 or later from https://github.com/Kartones/flask-calendar (patch commit: https://github.com/Kartones/flask-calendar/commit/bfde72eb3822a2584ae5afebae174a3c1c8593f9), and confirm both that task_details_for_markup returns markupsafe.Markup with escape() applied to non-URL fragments and that the |safe filter is gone from the task details render in flask_calendar/templates/calendar.html, since fixing only one of the two leaves a path open. The patch is available per the vendor advisory tracked at https://github.com/Kartones/flask-calendar/issues/223; operators who cannot redeploy immediately should treat task-detail content as untrusted output and restrict shared-calendar membership to vetted accounts, noting that this only reduces the attacker pool and does not remove the escaping flaw itself. Disabling AUTO_DECORATE_TASK_DETAILS_HYPERLINK is not a reliable workaround: the upstream regression tests cover the disabled-configuration path and still require escaping there, so the escaping gap persists with that setting off. There is no vendor-stated compensating control that fully substitutes for applying the fix.

Affected VersionsENISA

flask-calendar 0 <bfde72eb3822a2584ae5afebae174a3c1c8593f9

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

flask-calendar is a Python/Flask calendar application that renders task details into its calendar view. The flawed helper task_details_for_markup() in flask_calendar/app_utils.py took the raw stored details string, split it on line breaks and auto-linked URLs, and returned the reassembled string with no escaping of the non-URL fragments; calendar.html line 80 then piped that output through Jinja's |safe filter, which disables Jinja2's contextual autoescaping for the value. The result is a classic CWE-79 stored/reflected-in-storage cross-site scripting condition: markup stored by one user is emitted into another user's page as trusted HTML. The upstream fix converts the helper's return type to markupsafe.Markup and escapes each non-URL fragment with markupsafe.escape(), escapes URL fragments before interpolating them into the anchor template, preserves the <br> line-break markers by joining escaped lines with Markup("<br>"), preserves the "&nbsp;" empty-details placeholder, and removes the |safe filter from the template so Jinja's normal escaping applies. The commit's regression tests explicitly cover script tags, img/onerror payloads, attribute-breakout payloads, double-unescaping of entities such as &amp;, javascript: URIs, uppercase URL schemes, and the AUTO_DECORATE_TASK_DETAILS_HYPERLINK=False configuration path, confirming the escaping gap existed independently of the hyperlink-decoration setting. The CPE cpe:2.3:a:kartones:flask-calendar:*:*:*:*:*:*:*:* with a wildcard version confirms the whole pre-fix release line is in scope; the precise trigger for a given stored payload is simply that a victim renders the calendar view containing the tainted task details, and no other exploitation mechanics are described in the available sources.

Know when Flask Calendar gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Network-reachable stored XSS requiring an authenticated shared-calendar member (PR:L) and a victim viewing the content (UI:R); payload executing in another user's session is a scope change (S:C) with limited confidentiality/integrity impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

Kartones flask-calendar before commit bfde72e contains a stored cross-site scripting vulnerability because task_details_for_markup returns unescaped content rendered with the |safe filter. Authenticated shared calendar members can store script in task details that executes for other members, letting attackers read and modify their private calendars.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Rare
small self-hosted hobby open-source Flask app, negligible enterprise footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy