Skip to content

Evidence Lab v1.4.0 — Security & Authentication

Choose a tag to compare

@dividor dividor released this 13 Apr 05:07
· 1080 commits to main since this release
8fa7c61

Evidence Lab v1.4.0

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


What's Changed

Security (#264, #266)

  • Fixed SQL injection via sort_by parameter 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 parameterized vars argument
  • Added _ALLOWED_TAXONOMY_KEYS frozenset 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_LOGIN environment variable to hide email/password login when only OAuth is desired
  • Fixed OAuth secrets to be read solely from .env file in the API service
  • Pinned langgraph and langgraph-prebuilt to working versions

Documentation & CI (#261, #263)

  • Added OAUTH_CALLBACK_BASE_URL to .env.example and 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 to true to 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: v1.3.0...v1.4.0