CVE-2026-11956: TwiN gatus OIDC Session Cookie Security Flaw – Analysis & Remediation
A flaw in TwiN gatus 5.36.0's OIDC session cookie handler can result in session cookies being created without the secure attribute. This means cookies could be transmitted over unencrypted HTTP connections, exposing them to interception. An attacker would need to manipulate the application's session management flow, a process requiring significant technical effort and complex conditions to exploit. While not currently listed on CISA's Known Exploited Vulnerabilities catalog, the issue warrants attention for any deployment handling sensitive authentication flows.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 3.7 LOW · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses (CWE)
- CWE-1004, CWE-614
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-11 / 2026-06-17
NVD description (verbatim)
A vulnerability was determined in TwiN gatus 5.36.0. Impacted is the function setSessionCookie of the file security/oidc.go of the component OIDC Session Cookie Handler. Executing a manipulation can lead to sensitive cookie without secure attribute. The attack can be launched remotely. This attack is characterized by high complexity. The exploitability is considered difficult. The reported GitHub issue was closed with the label "not planned".
8 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-11956 affects the setSessionCookie function in security/oidc.go within TwiN gatus 5.36.0. The vulnerability stems from improper cookie configuration during OIDC-based authentication, where the secure flag—which restricts cookie transmission to HTTPS only—is not properly set. This creates a pathway for sensitive session data to be sent over cleartext channels. The flaw requires high attack complexity (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N) and manifests primarily as a confidentiality issue, with a CVSS v3.1 base score of 3.7 (LOW).
Business impact
The primary business risk centers on session hijacking if cookies are intercepted over unencrypted connections. In environments where users access gatus over HTTP (e.g., internal networks without TLS enforcement or misconfigured reverse proxies), attackers on the network path could capture authentication cookies and impersonate users. This undermines the security guarantees that OIDC authentication is meant to provide. For organizations relying on gatus for status monitoring or system access control, unauthorized session access could grant visibility into infrastructure health data or, depending on gatus's deployment scope, control plane access.
Affected systems
TwiN gatus version 5.36.0 is confirmed affected. The vulnerability resides in the OIDC session cookie handler, so it is only triggered when OIDC authentication is enabled. Organizations using gatus without OIDC, or with OIDC disabled, are not impacted. The issue does not affect availability or integrity; only confidentiality of session tokens is at risk.
Exploitability
Exploitation requires high technical complexity and is considered difficult according to the CVE record. An attacker must be positioned to intercept network traffic (e.g., on the same network segment or through BGP hijacking/DNS spoofing for remote exploitation) and must manipulate the application into generating a cookie without the secure flag. No active public exploits are known, and the GitHub issue was closed with a "not planned" label, suggesting the maintainers may not view this as exploitable under their threat model or may have architectural reasons for the current behavior. However, security-conscious deployments should still address the root cause.
Remediation
The definitive solution is to upgrade TwiN gatus beyond version 5.36.0. Verify the availability of a patched version from the official TwiN gatus repository. As an interim measure, enforce HTTPS-only access to gatus at the reverse proxy or network level, ensuring that even if cookies lack the secure flag, they cannot be transmitted over HTTP. Additionally, review OIDC configuration settings to confirm that session cookies are handled securely in your deployment.
Patch guidance
Check the TwiN gatus GitHub repository or official release notes for version numbers that address CVE-2026-11956. Apply the patch as part of routine security updates. Since the attack requires high complexity to execute, this is a lower-priority patch compared to critical vulnerabilities, but should still be scheduled within standard patch windows (30–60 days). Test the patched version in a staging environment to confirm OIDC session handling and any other authentication flows continue to function as expected.
Detection guidance
Monitor HTTP access logs for OIDC-related endpoints (typically /oidc/callback or similar) and flag any non-HTTPS requests that succeed. Use network-level detection to identify unencrypted cookie transmission over HTTP. In HTTP response headers, verify that Set-Cookie directives include the Secure attribute for all session cookies. Application-level logging or instrumentation of the setSessionCookie function can confirm whether the secure flag is being set correctly. Organizations using Web Application Firewalls (WAF) may implement rules to detect or block HTTP-transmitted session cookies.
Why prioritize this
This vulnerability scores LOW (3.7) due to the high attack complexity required and limited impact scope (confidentiality only). However, prioritization should account for whether OIDC is enabled in your gatus deployment and whether HTTP access to gatus is possible or enforced by policy. Organizations with strict network segmentation or HTTPS-everywhere policies face minimal risk. Conversely, environments with internet-facing or loosely segregated gatus instances should elevate priority. The maintainers' "not planned" closure suggests this may be intended behavior or a design decision; clarify intent with the TwiN team before investing substantial remediation effort.
Risk score, explained
The CVSS v3.1 score of 3.7 reflects: Network-accessible attack surface (AV:N), high complexity required to exploit (AC:H), no authentication or user interaction needed (PR:N/UI:N), unchanged scope (S:U), and only low-impact confidentiality loss (C:L/I:N/A:N). The score accurately represents a scenario in which an attacker must be well-positioned and the exposure is narrowly scoped to session token confidentiality. It does not account for downstream consequences (e.g., lateral movement after session hijacking), which would be context-dependent.
Frequently asked questions
Does this vulnerability affect gatus if I disable OIDC authentication?
No. The flaw is specific to the OIDC session cookie handler. If OIDC is not configured or enabled, this vulnerability does not apply. Verify your gatus configuration to confirm OIDC status.
If I enforce HTTPS-only access to gatus at my reverse proxy, am I protected?
Yes, HTTPS enforcement effectively mitigates the risk. If the application layer does not set the secure flag but your network enforces TLS, cookies cannot be transmitted unencrypted. However, patching remains the proper long-term fix to address the root cause.
Is there a public exploit for CVE-2026-11956?
No public exploit is known. The GitHub issue was closed with a "not planned" status, and the vulnerability has not been added to CISA's Known Exploited Vulnerabilities list. Exploitation requires high technical complexity and network positioning.
What is the timeline for a patched version?
Consult the official TwiN gatus repository and release notes. As of the vulnerability's publication (June 11, 2026), verify the latest available version and its security posture directly with the project maintainers. Do not assume a patch is available; confirm against official sources.
This analysis is based on the CVE record and publicly available information as of June 2026. No vendor advisory, patch availability, or detailed technical remediation was confirmed independently. Organizations should verify patch status and exploitability against official TwiN gatus sources and their own deployment context. This page does not constitute security advice; consult your security team and the vendor before making patching decisions. CVSS and CVE scores are as reported by NVD; risk may vary based on deployment-specific factors. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2025-52608LOWHCL iControl Missing Cookie Attributes Vulnerability
- CVE-2026-41017MEDIUMApache Airflow JWT Cookie Secure Flag Bypass
- CVE-2022-48575LOWmacOS Login Window Bypass via State Handling Flaw
- CVE-2024-42206LOWHCL iReflection Third-Party Component Vulnerability
- CVE-2024-58350LOWGhidra Use-After-Free in Sleigh Backend
- CVE-2025-12656LOWWPvivid Plugin Arbitrary Directory Deletion Vulnerability
- CVE-2025-48616LOWAndroid Lockdown Bypass via Screen Pinning Logic Error
- CVE-2025-52609LOWHCL iControl Missing Security Headers XSS Vulnerability