If you're running Open WebUI with SQLite as your backend, you have an authentication bypass that likely went unnoticed for years. The issue isn't a flaw in your OAuth configuration — it's a silent behavioral divergence in how your database abstraction layer handles identity matching.

The code uses JSON containment matching to resolve OAuth subjects. On PostgreSQL, this performs proper containment semantics. On SQLite, the same method compiles to a LIKE query with wildcard semantics — percent signs and underscores become pattern operators. An attacker who registers an OAuth subject containing % or _ can craft a subject that matches multiple accounts via substring matching, achieving account takeover.

The patch in version 0.11.1 escapes these characters, which stops the immediate attack. But the deeper problem remains: the semantic contract of 'JSON contains' was never honored across backends. Future developers seeing this method will assume it behaves consistently. It doesn't. The abstraction promises safety but delivers behavioral divergence in your authentication path.

What you should do now: First, audit every JSON containment, JSON extraction, or string-matching operation in security-critical paths — not just OAuth subject resolution. Check for similar patterns in user lookup, permission checks, or session handling. Second, if you're deploying SQLite in production, treat it as a separate security boundary with its own test matrix; don't assume ORM methods guarantee consistent behavior. Third, review whether exact-match semantics (equality operators) are more appropriate than containment for identity fields — OAuth subjects should be matched exactly, not searched as substrings.

The systemic lesson: multi-database ORM support is marketed as a feature, but it transfers behavioral complexity to your application layer. Every security-critical query needs explicit testing across all supported backends. The vulnerability wasn't introduced by a developer's mistake — it was baked into the abstraction layer and only surfaced when the right deployment context exposed it.