Explore

Rule Explorer

Search the public rule index by CVE, GHSA, CWE, language, framework, author, or rule slug. Filter by language, framework, severity, confidence, license, and validation status.

Public rules
6965
Downloads
12.9M
Verified
6965
Authors
2
Search the rule indexUse CVE, GHSA, CWE, language, framework, package, or rule slug.
1 rules matched. Showing 1 loaded rules.
Publish rule
CVE-2026-82311: Flask Login Session User Id Type Mismatchcve-2026-82311-flask-login-session-user-id-type-mismatch

Flask-Login stores `_user_id` in session data as a string (via `User.get_id()`), whereas database user models typically define `id` as an integer column. Directly comparing `_user_id` with `user.id` without casting evaluates to False in Python 3, causing session revocation or lookup to silently fail. Cast both identifiers (e.g., `str(...)`) before comparing.

by Provallyupdated 2026-10-27Apache-2.0
520 direct52 via packs
downloads
80quality
All matching rules loaded.