You can check this document for updates.
The Wazuh central components document includes instructions on how to upgrade the Wazuh server, the Wazuh indexer, and the Wazuh dashboard step by step. If you follow this document, you should be able to upgrade without any issues.
Make sure to take a backup of any custom visualizations, dashboards, and other saved objects you have before the upgrade, which is also explained in the Preparing the upgrade section.
If you run into any issues, which I hope not, let me know, and I will try to guide you with solutions.