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-115400 Overview
CVE-2026-115400 is a cleartext storage vulnerability [CWE-312] affecting crawlseo versions prior to 0.2.5. The application stores Google OAuth access and refresh tokens unencrypted in the User.googleTokens column of its Postgres database. An attacker with database read access can extract plaintext long-lived refresh tokens from the compromised store. Those tokens grant indefinite, unauthenticated access to every registered user's Google Search Console data. The flaw does not require authentication to the crawlseo application itself; it requires access to the backing database, whether through compromise, misconfiguration, or exposure.
Critical Impact
Theft of unencrypted Google OAuth refresh tokens enables persistent, cross-user access to Google Search Console data without triggering crawlseo authentication controls.
Affected Products
- crawlseo versions prior to 0.2.5
- Deployments using Postgres as the backing data store for User.googleTokens
- Any crawlseo instance that completed Google OAuth linkage before upgrading
Discovery Timeline
- 2026-10-22 - CVE-2026-115400 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-115400
Vulnerability Analysis
The crawlseo application integrates with Google Search Console through OAuth 2.0. After a user authorizes the application, Google returns an access token and a long-lived refresh token. Before version 0.2.5, crawlseo persisted both tokens in cleartext inside the User.googleTokens column.
Refresh tokens remain valid until the user explicitly revokes them in Google account settings. An attacker who reads the column obtains credentials that bypass crawlseo's own session and authentication controls. The tokens can be replayed directly against Google APIs from any network location.
The scope of impact extends to every registered user whose Google account was linked. Attackers can enumerate the googleTokens column and acquire tokens for the entire user base in a single query.
Root Cause
The root cause is the absence of encryption-at-rest for a secret stored in an application database column [CWE-312]. The application treated OAuth tokens like ordinary profile data rather than long-lived credentials requiring envelope encryption or a dedicated secret store.
Attack Vector
Exploitation requires read access to the Postgres database. Realistic paths include SQL injection against another component, compromised database credentials, exposed backups, cloud snapshot misconfiguration, or an insider with query access. Once tokens are retrieved, the attacker calls Google's OAuth token endpoint with the refresh token to mint fresh access tokens and query Search Console APIs.
The following TypeScript excerpt from the fix commit shows the post-patch account actions that sign the user out, revoke Google access, and remove tokens from the server:
"use server";
import { redirect } from "next/navigation";
import { auth, signOut } from "@/lib/auth";
import { db } from "@/lib/db";
import { deleteAccount, disconnectGoogle } from "@/lib/account";
async function sessionUser(): Promise<{ id: string; email: string | null }> {
const session = await auth();
const id = session?.user?.id;
if (!id) redirect("/login");
return { id, email: session.user?.email ?? null };
}
export async function disconnectGoogleAction(): Promise<void> {
const user = await sessionUser();
await signOut({ redirect: false });
const { revoked } = await disconnectGoogle(db, user.id);
redirect(`/login?notice=${revoked ? "disconnected" : "disconnected-unrevoked"}`);
}
Source: GitHub Commit 2ce0b4b
Detection Methods for CVE-2026-115400
Indicators of Compromise
- Google Search Console API calls originating from IP addresses or user agents not associated with the crawlseo deployment.
- Unexpected grant_type=refresh_token requests to oauth2.googleapis.com/token outside normal crawlseo activity windows.
- Database audit entries showing SELECT queries against User.googleTokens from accounts other than the application service user.
- Google account security notifications reporting new API access to Search Console properties.
Detection Strategies
- Review Google Cloud audit logs and Search Console API usage for anomalous access patterns across linked user accounts.
- Inspect Postgres query logs for direct reads of the User.googleTokens column, especially bulk SELECT statements.
- Correlate crawlseo application access logs with upstream Google API calls to identify out-of-band token use.
Monitoring Recommendations
- Enable Postgres statement logging for sensitive tables and forward logs to a central analytics platform for review.
- Monitor outbound network connections from crawlseo hosts to Google OAuth endpoints and alert on unexpected sources.
- Track OAuth client ID usage in Google Cloud Console and alert on sudden increases in refresh token exchanges.
How to Mitigate CVE-2026-115400
Immediate Actions Required
- Upgrade crawlseo to version 0.2.5 or later, which introduces encrypted storage of Google tokens.
- Revoke existing Google OAuth grants for crawlseo at myaccount.google.com/permissions and require users to reconnect Search Console.
- Rotate database credentials and audit all accounts with read access to the crawlseo Postgres instance.
- Review Google Search Console API access history for any suspicious activity preceding the patch.
Patch Information
The fix is available in crawlseo v0.2.5. The commit 2ce0b4b2bdd6047e0a9ede037fd355381968d9bc introduces encrypted token handling and server actions to sign out, disconnect Google, and delete accounts cleanly. Additional details are published in the VulnCheck advisory and a public GitHub Gist proof-of-concept.
Workarounds
- If upgrading is not immediately possible, restrict Postgres network exposure and remove direct database access for non-service accounts.
- Manually clear the User.googleTokens column and force users to re-authenticate once upgrade is complete.
- Encrypt database backups and snapshots at rest, and rotate any snapshots taken while cleartext tokens were present.
# Example: clear existing cleartext tokens before upgrade
psql -U crawlseo -d crawlseo -c "UPDATE \"User\" SET \"googleTokens\" = NULL;"
# Verify installed version after upgrade
npm ls crawlseo
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

