Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108738 Overview
CVE-2026-108738 is a cross-site request forgery (CSRF) vulnerability in Traccar versions 5.7 through 6.16.0. The flaw resides in the OpenID Connect (OIDC) callback endpoint /api/session/openid/callback, which never validates the OAuth state parameter. An attacker can trick a victim's browser into completing the OIDC flow using an attacker-controlled authorization code, logging the victim into the attacker's account. Any data the victim then enters, including registered GPS devices and tracking information, is written to the attacker's account. The weakness is tracked under CWE-352.
Critical Impact
Victims can be silently logged into an attacker-controlled Traccar account, causing sensitive fleet and device data to be sent to the attacker.
Affected Products
- Traccar 5.7 through 6.16.0
- Traccar deployments with OpenID Connect authentication enabled
- Self-hosted Traccar servers exposing /api/session/openid/callback
Discovery Timeline
- 2026-10-11 - CVE-2026-108738 published to the National Vulnerability Database (NVD)
- 2026-10-11 - Last updated in NVD database
Technical Details for CVE-2026-108738
Vulnerability Analysis
Traccar is an open-source GPS tracking platform that supports OpenID Connect for single sign-on. The vulnerable code paths are located in SessionResource.java and OpenIdProvider.java. The OIDC authorization request initiates a login redirect to the identity provider, but the server does not generate, store, or verify an OAuth state value tied to the user's session.
Because the callback endpoint accepts any valid authorization code without binding it to the originating session, an attacker who holds a valid code from their own OIDC authentication can force a victim's browser to submit that code. The server exchanges the code for tokens and establishes a session for the attacker's identity in the victim's browser.
For code-level context, see the SessionResource code review and the OpenIdProvider code review.
Root Cause
The root cause is a missing anti-CSRF state parameter in the OIDC client implementation. OAuth 2.0 and OIDC specifications require the relying party to generate an unguessable state value, bind it to the user agent session, and reject callbacks whose state does not match. Traccar's implementation omits this check entirely.
Attack Vector
The attacker first initiates an OIDC login against the Traccar server and captures the authorization code returned by the identity provider. The attacker then crafts a URL or HTML page that causes a victim's browser to request /api/session/openid/callback?code=<attacker_code>. Once the victim visits the attacker-controlled page, Traccar completes the login flow and binds the victim's browser to the attacker's account. The victim then unknowingly populates the attacker's account with devices, positions, and other telemetry.
No exploitation code is published in the enriched advisory data. Technical analysis is available in the HackMD OIDC Client CSRF Analysis and the VulnCheck Traccar CSRF Advisory.
Detection Methods for CVE-2026-108738
Indicators of Compromise
- Requests to /api/session/openid/callback where the HTTP Referer header points to an external, non-identity-provider domain.
- Successful OIDC session creation events immediately followed by new device registrations under an unfamiliar account.
- Multiple distinct client IP addresses creating sessions tied to the same OIDC sub claim within a short time window.
Detection Strategies
- Inspect reverse proxy and application logs for /api/session/openid/callback requests that lack a corresponding prior /api/session/openid/auth request from the same browser session.
- Alert on OIDC callbacks containing an authorization code parameter but no state parameter, or where state is unchanged across sessions.
- Correlate account activity to flag accounts receiving device registrations from IP addresses or geolocations inconsistent with the account owner's historical pattern.
Monitoring Recommendations
- Forward Traccar authentication logs and reverse proxy access logs to a centralized SIEM for continuous review.
- Monitor identity provider logs for repeated authorization code issuance to a single sub followed by short-lived callback activity from unrelated IPs.
- Baseline normal OIDC login patterns per user and alert on new devices appearing in accounts without a preceding interactive login from the account owner.
How to Mitigate CVE-2026-108738
Immediate Actions Required
- Upgrade Traccar to a version later than 6.16.0 once a fixed release is published by the maintainers.
- Disable OpenID Connect authentication on affected Traccar deployments until a patched release is applied.
- Audit existing accounts and registered devices for unexpected ownership changes or new entries added during the exposure window.
Patch Information
No patched version is listed in the enriched advisory data at the time of publication. Monitor the Traccar GitHub repository and the VulnCheck advisory for the fixed release. A correct fix must generate a cryptographically random state value per authorization request, bind it to the user's browser session, and reject callbacks whose state is missing or does not match.
Workarounds
- Route Traccar behind a reverse proxy that strips or rejects requests to /api/session/openid/callback lacking a session-bound state parameter.
- Restrict access to the Traccar web interface to trusted networks or VPN clients to reduce victim exposure to attacker-controlled links.
- Fall back to local username and password authentication, or SAML with proper RelayState validation, until Traccar's OIDC client is patched.
# Example nginx snippet to block OIDC callbacks missing a state parameter
location = /api/session/openid/callback {
if ($arg_state = "") {
return 400;
}
proxy_pass http://traccar_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

