# GHSA-WQW2-RGWV-99QX: veans downgrades HTTPS to HTTP during server discovery on init and login

- Database: GitHub
- Severity: CVSS 6.8 (Medium)
- Published: 2026-10-22
- Modified: 2026-10-22

## Affected versions

- code.vikunja.io/veans (Go): through 0.0.0

## Description

Affects all veans versions (veans has no tagged release yet).

## Summary
An on-path attacker who blocks `https://host` and `https://host:3456` makes `veans init`/`veans login` fall back to plain http and captures the posted password or bot token. The http base URL is then saved, so all later traffic stays cleartext.

## Details
- `serverCandidates` adds http candidates after an explicit `https://` URL (`veans/internal/client/discover.go:119-121`), and a bare hostname also falls back to http (`veans/internal/client/discover.go:88`).
- The first response that parses as server Info wins, with no identity check (`veans/internal/client/discover.go:63`).

## Impact
Theft of the user's password, TOTP code or token, and persistent cleartext API traffic, for a user on a network the attacker controls.

## Fix
Try http only for loopback hosts or a user-typed `http://`; never as a fallback for `https://` or a bare hostname.

This is separate from the planned veans trust gate (a confirmed, scheme-keyed trust record per origin). That gate catches a downgrade only if the user reads the `http://` in the prompt.

_Found via internal security review (03 #0, deep #7)._

## References

- https://github.com/go-vikunja/vikunja/security/advisories/GHSA-wqw2-rgwv-99qx

Page: https://cve.now/GHSA-WQW2-RGWV-99QX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
