Evidence Lab v1.4.0 — Security & Authentication
v1.4.0 is a security and authentication release. It fixes a SQL injection vulnerability in the documents API, adds conditional OAuth login buttons, and improves deployment configuration for OAuth callbacks.
📋 Full changelog: CHANGELOG.md (opens in a new tab)
What’s Changed
Security (#264, #266)
- Fixed SQL injection via
sort_byparameter interpolated into raw SQL — replaced f-string interpolation with whitelist dictionary lookup - Fixed SQL injection via taxonomy filter codes interpolated into
jsonb_path_exists— replaced with parameterizedvarsargument - Added
_ALLOWED_TAXONOMY_KEYSfrozenset to validate taxonomy keys before use in JSONB path expressions - Added “SQL Injection Prevention” section to SECURITY.md documenting all dynamic SQL controls
- Updated CLAUDE.md SQL guidance to cover dynamic SQL fragments (ORDER BY, JSONB paths)
- Added 15 regression tests for SQL injection prevention
Authentication (#265)
- Added conditional OAuth buttons — Google and Microsoft SSO buttons only appear when the corresponding secrets are configured
- Added
DISABLE_EMAIL_LOGINenvironment variable to hide email/password login when only OAuth is desired - Fixed OAuth secrets to be read solely from
.envfile in the API service - Pinned langgraph and langgraph-prebuilt to working versions
Documentation & CI (#261, #263)
- Added
OAUTH_CALLBACK_BASE_URLto.env.exampleand auth documentation - Updated dependabot target-branch to
rc/v1.4.0 - Skipped container-scan for dependabot PRs to reduce CI costs
⬆️ Upgrading
No database migrations in this release.
New optional environment variables:
DISABLE_EMAIL_LOGIN— set totrueto hide email/password login (OAuth-only mode)OAUTH_CALLBACK_BASE_URL— set when OAuth callback URL differs from the app URL (e.g. behind a reverse proxy)
Full diff: https://github.com/dividor/evidencelab/compare/v1.3.0...v1.4.0 (opens in a new tab)