Commit Graph
5042 Commits
Author SHA1 Message Date
varjolintu a13a1d7582 Fix returning sortPriority with empty priority list 2026-10-26 14:19:40 +02:00
Janek Bevendorff 09e34ba86c Ensure Qt's TLS plugins are deployed on macOS
For whatever reason, macdeployqt does not deploy the TLS plugins on its own. We need to find them manually.

Fixes #13855
2026-10-24 01:13:43 +02:00
Janek BevendorffandJonathan White 2e884edf7b Fix macOS Qt plugin deployment (#13821)
Co-authored-by: Jonathan White <[email protected]>
2026-10-24 01:09:03 +02:00
Janek Bevendorff a6ba28f8b2 Reformat code with clang-format-20 2026-10-23 15:44:56 +02:00
Janek Bevendorff b3ba195757 Add CMake option to fix clang-format binary. 2026-10-23 15:44:56 +02:00
Janek Bevendorff 1e373cf036 Remove AppDir output and force qmake6 2026-10-23 15:44:56 +02:00
Janek Bevendorff d5e43b779d Update GitHub sponsors 2026-10-21 14:28:07 +02:00
Janek Bevendorff 42bc892cab Fix regression in finding vcpkg macdeployqt 2026-10-21 07:27:50 -04:00
egglessness e0e3b844e9 Add support for configuration overrides via GPOs in Windows
This is a Windows only feature that uses policies set in the registry to control settings in KeePassXC. Overrides are set in HKLM\Software\Policies\KeePassXC and uses the same structure as the ini settings file. Overridden settings are disabled in the user interface and their values are not written to the user's own settings file.
2026-10-21 00:03:57 -04:00
Janek Bevendorff 9a58a0e128 Support cross-platform AppImage builds 2026-10-20 23:29:47 -04:00
Christian 9b4632a8da Restore wl-copy clipboard clearing on Wayland
Fixes #13809
2026-10-20 17:49:51 +02:00
Jonathan White 6c686af438 Improve cross-compiling ARM64 on Windows
* Fix using the specified QT_HOST_PATH for executables
* Fix setting the Visual Studio environment for cross-compiling
2026-10-20 11:06:53 +02:00
Jonathan White b0454704e4 Remove legacy qt.conf deployment
* Fixes #13702
2026-10-20 11:06:53 +02:00
Jonathan White 9daea646d7 Fix deploying qtbase translations with Qt6 2026-10-20 11:06:53 +02:00
Janek Bevendorff aabfb3858b Exclude libcrypto and libssl from AppImage
Fixes #13774
2026-10-18 15:26:29 -04:00
underclockeddev 0ae1b94093 Do not query the X root window without a display
Under QT_QPA_PLATFORM=offscreen the X11 native interface exists but has no
display, and DefaultRootWindow() dereferenced the null pointer at startup.
The global shortcut code already checks for a null display.
2026-10-18 16:24:31 +02:00
underclockeddevandClaude Opus 5.5 596ae49d60 Clear m_attemptingLock when a lock's autosave triggers a reload
DatabaseWidget::lock() returned early when its autosave failed and a reload
began, without clearing m_attemptingLock. Every later lock() then returned at
the m_attemptingLock check, so the database could not be locked again until
KeePassXC was restarted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-18 16:13:58 +02:00
Toni Spets d608efc1b8 Fix portal availability checks racing with D-Bus service activation
QDBusAbstractInterface::isValid() can latch an empty service owner
cached while xdg-desktop-portal is still activating, permanently
disabling auto-type and the global shortcut. Use the interfaces'
version() property reads instead: real blocking calls that trigger
activation if needed and return 0 only on failure.
2026-10-18 14:37:32 +02:00
varjolintu b05b0dd2e8 Use selected database when creaeting a new group when creating a passkey 2026-10-17 06:06:37 -04:00
fkobi 5abafd2805 INSTALL.md: update botan version
Should be done in

https://github.com/keepassxreboot/keepassxc/commit/7c7ca4575e7fe6c3412d3fffcd1d5ad580211a17
2026-10-16 11:34:50 -04:00
fkobi 5916e5d749 .github/workflows/codeql.yml: remove libargon2 dependency
should be done in https://github.com/keepassxreboot/keepassxc/commit/7c7ca4575e7fe6c3412d3fffcd1d5ad580211a17#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aL482-L486
2026-10-16 11:34:05 -04:00
Jonathan White b5523be1a1 Additional fixes for macOS and modern Qt6
* Replace Q_OS_MAC with Q_OS_MACOS
* Remove deleted macro QTEST_DISABLE_KEYPAD_NAVIGATION
2026-10-15 14:18:47 -04:00
Jonathan White 50738ec006 Fix warnings with COMPAT signal after Qt6 upgrade
* Fixes a specific warning that spams the console due to a deprecated signal that was used to indicate checkboxes state changed.
* Converted all QCheckBox::stateChanged(int) to QCheckBox::toggled(bool). All functionality still works as intended.
2026-10-15 14:18:47 -04:00
Jonathan White 52e2743b3a Fix snap build to use latest format (#13728)
* Fix snap build to use latest format

- add x11-related libs to make the program functional.
- additional metadata
- remove desktop-launch

* Move to core24
2026-10-14 00:00:31 -04:00
Janek Bevendorff 9e0f57a4a4 Update translations 2.8.0-beta1 2026-09-22 22:24:04 +02:00
Janek Bevendorff 013b2614e9 Update changelog date 2026-09-22 22:11:04 +02:00
ryain11andJanek Bevendorff 21bdc8248f Fixed a Secret Service Integration connection dereferencing a nullptr in some cases (#13655)
* Fix Secret Service message being null in some cases when unlocking a database

* Update changelog

---------

Co-authored-by: Janek Bevendorff <[email protected]>
2026-09-22 21:46:56 +02:00
varjolintu 80e68bb4e8 Fix out-of-bounds writing to browser messages 2026-09-22 21:46:36 +02:00
varjolintu dfdd561fc5 Passkeys: Fix parsing punycode domains 2026-09-21 22:26:59 -04:00
Janek Bevendorff fd603849ee Add --override-version option 2026-09-20 21:46:58 -04:00
Janek Bevendorff 1b2b04989e Update translations 2026-09-20 21:46:58 -04:00
Janek Bevendorff a69ff5b9ec Update About credits 2026-09-20 21:46:58 -04:00
Janek Bevendorff 8bbf3732fa Add changelog 2026-09-20 21:46:58 -04:00
2b58033398 Add native Windows Arm64 support on Qt-vcpkg builds (#13678)
* Add minimal native Windows Arm64 support

Extend the Qt-via-vcpkg work from #13473 with only the source changes required for Windows Arm64 triplet selection, deployqt resolution, ordered runtime dependency deployment, and architecture-correct MSI metadata.

Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Gordon Lam (SH) (from Dev Box) <[email protected]>
Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>
2026-09-20 23:59:34 +02:00
ryain11 f2003b4087 Fix password font size not changing
* Move font size application to showEvent instead of constructor to enable dynamic font size application if changed in app settings.
2026-09-20 20:40:18 +02:00
SimonandCopilot Autofix powered by AI 126f508e6a Add list storing key of all custom attributes in database
Add completer when adding/renaming custom attribute

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-09-19 19:26:55 -04:00
Sami Vänttinen 474da9b877 Fix identifying nested reference placeholders (#13688) 2026-09-19 19:26:29 -04:00
Jonathan White 5ac1b0c98d Center browser dialog on active screen 2026-09-16 18:04:55 -04:00
Janek Bevendorff e053e1d147 Make Pageant shared memory handle name unpredictable 2026-09-16 13:27:34 -04:00
Janek Bevendorff 5d7f371b74 Fixes potential quint32 wrap in KDB 1 importer.
parseGroupTreeState() retrieves the number of record tree states from a 32-bit integer. It then calculates the number of bytes to read as num * 5, which is checked against the actual buffer length. The multiplication occurs as quint32, which wraps at 2^32. An attacker could craft a 32-bit value that wraps to match the observed buffer length. The following loop, however, uses num directly and may thus loop millions of times, reading beyond the end of the buffer.

No bytes are written and the minimum number that wraps is 2^32 / 5, which is well beyond any reasonable buffer size. Hence this is exploitable only as a denial of service. Given that this requires a crafted KDB file, there are easier ways to make the contents of a file unreadable.
2026-09-16 06:03:15 -04:00
Toni Spets 84658ade9a Always call BindShorcuts for new sessions
Previously KDE Plasma implicitly bound them on session start but this
behavior was recently changed so it is now always required to bind them
which is correct according to spec. Our workaround was only needed for
fairly old KDE releases.

Because depending on the version and type of the desktop portal the
behavior might be all over the place we will always list the shortcuts
first as they might be active on session start and calling BindShortcuts
might fail and not give us the list back making our UI stale.

Docs have been updated to indicate version support for both KDE and
GNOME.
2026-09-15 18:22:27 +02:00
Janek Bevendorff 55c54986d6 Add AI scanner notice about _EXEC_CMD not being a security flag 2026-09-15 18:10:14 +02:00
Janek Bevendorff 2094ac5261 Use C++ allocation in zlib (#13677)
* Use C++ allocation in zlib

Marginally reduces the chances of decrypted database fragments remaining in memory.

Addresses CVE-2024-33901, but does not fix the main issue. For a proper solution, we need to replace QXmlStreamReader with something else.

* Fix Linux build always falling back to std::free() branch due to undefined HAVE_MALLOC_USABLE_SIZE
2026-09-15 11:23:12 -04:00
Abdelrahman Saeed Elhassan 61d562b379 Fix search + prefix modifier ignoring case sensitivity
The search parser now passes the CASE_SENSITIVE flag to the term
when the '+' prefix modifier is used, so searches like '+p:test1'
correctly perform case-sensitive matching.

Fixes #13000

[skip ci]
2026-09-14 19:46:56 -04:00
Brais Couce 089cf9a916 Add the number of passkeys and TOTP entries to the statistics of the database report (#13632) 2026-09-14 19:44:49 -04:00
AetfandClaude Fable 5 8e6fe3ffd6 FdoSecrets: keep AccessControlDialog safe across database lock
The item access confirmation dialog used to hold raw Entry pointers in
its model, its deny buttons, and its result signal. When the database
locks or closes while the dialog is open, DatabaseWidget replaces the
Database and destroys every Entry, while the dialog stays up: painting
the model, or answering the dialog, then dereferenced freed entries
(crash in UnlockPrompt::itemUnlockFinished via Entry::uuid, see the
backtrace in #9104).

Make the dialog self-contained: snapshot each entry's uuid and display
data (title, username, icon) at construction and report decisions as a
QHash<QUuid, AuthDecision>, so the dialog never touches an Entry again
after it is shown.

On the UnlockPrompt side, restore the invariant that a non-null item
reference implies a usable backend: track items with QPointer and clear
all references as soon as an item retires (Item::itemAboutToDelete),
mirroring how collection retirement is handled. A decision for an item
that has retired counts as rejected, so the prompt completes as
dismissed instead of reporting success for nothing.

Finally, match the browser behavior: the dialog now withdraws itself
(rejects) when a collection it is asking about locks or goes away,
instead of keeping a stale question on screen.

Fixes #9104

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AqHu6RpvLpaoH2aUGSYQzR
2026-09-14 19:44:08 -04:00
Janek Bevendorff 84f5e58c29 Add -DWITH_BUILD_QT CMake option and --build-qt release-tool flags to build Qt6 via vcpkg instead of using binaries from the system
Also advance vcpkg baseline to pull in Qt 6.11 and to fix compilation
with macOS SDK 26.
2026-09-14 14:31:24 -04:00
Janek Bevendorff 07c102d926 Remove protected attributes from FDOSecrets attribute listing 2026-09-14 14:30:07 -04:00
Sami Vänttinen 26da2a1b17 Browser: Fix placeholders part two (#13670) 2026-09-13 19:03:55 -04:00
Jonathan White 1a2bdfe629 Code format 2026-09-13 17:12:25 +02:00