CVE-2026-40308: Joedolson/my calendar Unauthenticated Information Disclosure (IDOR) Vulnerability
HIGHCVE-2026-40308 is a HIGH unauthenticated information disclosure (idor) vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Joedolson/my calendar libraries in the Packagist ecosystem. The issue involves unauthenticated information disclosure (idor) via multisite switch_to_blog in my calendar. Remediation is available by upgrading affected packages to version 3.7.7.
CVE-2026-40308 at a Glance
How to Fix CVE-2026-40308
To remediate this vulnerability, upgrade all affected Joedolson/my calendar dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade joedolson/my-calendar to 3.7.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for joedolson/my-calendar
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-40308, inspect your project dependencies for Joedolson/my calendar:
inspect dependencies for joedolson/my-calendar
Analyze the terminal output to locate any version of Joedolson/my calendar in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Joedolson/my calendar, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40308 Affected Joedolson/my calendar Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
joedolson/my-calendar
|
Packagist |
< 3.7.7
|
3.7.7
|
References
Frequently Asked Questions
What is CVE-2026-40308?
Which Joedolson/my calendar versions are affected?
What version fixes CVE-2026-40308?
Is joedolson/my-calendar affected?
What CWE is associated with CVE-2026-40308?
How can I check Packagist dependencies for CVE-2026-40308?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2mvx-f5qm-v2ch",
"modified" : "2026-04-16T21:34:40Z",
"published" : "2026-04-16T21:34:40Z",
"aliases" : [ "CVE-2026-40308" ],
"summary" : "Unauthenticated Information Disclosure (IDOR) via Multisite switch_to_blog in My Calendar",
"details" : "### Summary\n\nAn unauthenticated Insecure Direct Object Reference (IDOR) and Denial of Service (DoS) vulnerability in the My Calendar plugin allows any unauthenticated user to extract calendar events (including private or hidden ones) from any sub-site on a WordPress Multisite network. On standard Single Site WordPress installations, this same endpoint crashes the PHP worker thread, creating an unauthenticated Denial of Service (DoS) vector.\n\n### Details\n\nThe vulnerability stems from the `mc_ajax_mcjs_action AJAX` function, which handles the `mcjs_action` endpoint. This endpoint is explicitly registered for unauthenticated users:\n```php\n<?php\n// In my-calendar-ajax.php\nadd_action( 'wp_ajax_nopriv_mcjs_action', 'mc_ajax_mcjs_action' );\n```\n\nWhen the behavior parameter is set to loadupcoming, the plugin accepts an args parameter from the $_REQUEST array. Instead of validating specific expected arguments, the plugin unsafely passes the entire string into PHP's parse_str() function:\n```php\n<?php\n$request = isset( $_REQUEST['args'] ) ? wp_unslash( sanitize_text_field( $_REQUEST['args'] ) ) : array();\n$request = str_replace( '|', '&', $request );\n$request = parse_str( $request, $args );\n// ...\n$response = my_calendar_upcoming_events( $args );\n```\n\nThis allows an attacker to inject arbitrary key-value pairs into the $args array. This array is then passed to the my_calendar_upcoming_events() function located in my-calendar-widgets.php.\n\nAt the beginning of this function, the plugin processes the attacker-controlled site argument:\n```php\n<?php\n// In my-calendar-widgets.php\nif ( $args['site'] ) {\n $args['site'] = ( 'global' === $args['site'] ) ? BLOG_ID_CURRENT_SITE : $args['site'];\n switch_to_blog( $args['site'] );\n}\n```\nThe plugin blindly passes the attacker's supplied site ID into WordPress core's `switch_to_blog()` function without checking if the requesting user has the appropriate network-level privileges (e.g., Super Admin).\n\nOn Multisite configurations, the database context switches to the targeted sub-site, queries its events, and returns the HTML-rendered events array in the JSON response, leading to Information Disclosure across tenant boundaries.\nOn Single Site configurations, the switch_to_blog() function does not exist in WordPress core. Calling it triggers an Uncaught PHP Error (Call to undefined function switch_to_blog()), resulting in a 500 Internal Server error (\"Critical Error\"). Repeated requests to this unauthenticated endpoint easily exhaust server resources.\n\n### PoC\n\n## 1. Multisite Information Disclosure - IDOR\n```\ncurl -s \"http://<target-domain>/wp-admin/admin-ajax.php?action=mcjs_action&behavior=loadupcoming&args=site=2\"\n```\n\n## 2. Single Site Denial of Service (DoS)\nIf the WordPress instance is not a Multisite, passing any truthy value to the site parameter will instantly crash the request thread:\n```\ncurl -i -s \"http://<target-domain>/wp-admin/admin-ajax.php?action=mcjs_action&behavior=loadupcoming&args=site=1\"\n```\n\n### Impact\n\n**Vulnerability Type**: Insecure Direct Object Reference (IDOR) / Information Exposure / Denial of Service (DoS)\n**Who is impacted**: All sites running the \"My Calendar\" plugin.\n\nAnonymous internet users can silently map the network and extract private, unpublished, or intranet-specific events from unlaunched/internal sub-sites.\nStandard Single Site users are vulnerable to an easy-to-execute application-layer DoS, as it costs an attacker negligible resources to constantly crash PHP worker threads at an unauthenticated endpoint.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "joedolson/my-calendar"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.7.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/joedolson/my-calendar/security/advisories/GHSA-2mvx-f5qm-v2ch"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/joedolson/my-calendar"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-16T21:34:40Z",
"nvd_published_at" : null
}
}