CVE-2026-137538 in ToolJet
Summary
by MITRE • 11/26/2026
ToolJet before 3.21.96-LTS contains an insufficient session expiration vulnerability that allows attackers to reuse expired JWTs because the passport-jwt strategy sets ignoreExpiration to true. Attackers holding a leaked tj_auth_token can keep sessions alive through auto-extended expiry and two-year cookies to persistently access victim accounts.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The identified vulnerability in ToolJet versions prior to 3.21.96-LTS represents a critical authentication bypass mechanism rooted in the misconfiguration of JSON Web Token validation logic. Specifically, the application utilizes the passport-jwt strategy for session management but incorrectly configures it with the ignoreExpiration flag set to true. This configuration error fundamentally undermines the temporal security model inherent to JWTs, which rely on expiration claims to limit the window of opportunity for token misuse. By disregarding the expiry timestamp embedded within the token structure, the application effectively treats all presented tokens as valid regardless of their age or issuance time. This flaw creates a persistent attack surface where previously issued authentication credentials remain functional indefinitely, provided they have not been explicitly revoked through other administrative means such as user logout sequences that might clear local storage but fail to invalidate the server-side acceptance logic for subsequent requests carrying these stale tokens.
The operational impact of this vulnerability is severe due to its potential for long-term unauthorized access and data exfiltration. Attackers who obtain a leaked tj_auth_token, whether through client-side script injection, network sniffing in unsecured environments, or other credential theft vectors, can maintain persistent sessions without needing to refresh the token actively. The combination of this validation flaw with ToolJet's default cookie policies, which include auto-extended expiry mechanisms and long-lived two-year cookies, exacerbates the risk significantly. Even if a user logs out, the underlying mechanism may not fully invalidate the session context in all scenarios, allowing an attacker to reuse old tokens that would normally be rejected by a properly configured system. This persistence enables attackers to retain access to victim accounts over extended periods, facilitating continuous monitoring of activities, theft of sensitive business logic embedded within applications built on ToolJet, and potential lateral movement if those credentials grant privileges beyond the immediate application scope.
From a classification perspective, this vulnerability aligns with CWE-613, which denotes insufficient session expiration, as well as CWE-287 regarding improper authentication mechanisms where identity verification is bypassed due to flawed logic. In terms of adversary tactics, this behavior maps directly to MITRE ATT&CK technique T1528, specifically the sub-technique for stealing application access tokens. The ability to reuse expired credentials also touches upon aspects of credential replay attacks, although the primary vector here is the server-side failure to enforce temporal constraints rather than network-level interception alone. This distinction highlights that while token theft is a common threat, the specific exploitation relies on the backend service's inability to distinguish between current and stale authentication artifacts due to configuration errors in the identity provider integration layer.
Mitigation strategies must prioritize immediate patching of ToolJet to version 3.21.96-LTS or later, where this passport-jwt misconfiguration has been corrected to enforce strict expiration checks. In environments where upgrading is not immediately feasible, administrators should implement compensating controls such as shortening the default cookie lifetime and disabling auto-extension features if available through configuration overrides. Additionally, deploying a Web Application Firewall with rules capable of detecting anomalous token usage patterns or enforcing stricter session management policies at the reverse proxy level can provide an additional layer of defense. It is also critical to ensure that all client-side applications utilizing ToolJet clear local storage and cookies completely upon logout events to reduce the pool of potentially reusable tokens available for replay attacks, although this alone does not resolve the server-side validation flaw. Regular auditing of authentication logs for unusual activity patterns associated with long-lived sessions can help in early detection of exploitation attempts stemming from such vulnerabilities.