Hello everyone there is a way to update this vulnerability I was able to do it successfully on Windows server 2019.
Step 1: Go to https://www.msys2.org/ and download the installer. Also Git will need to be installed as well https://git-scm.com/downloads
Step 2: After downloading MSYS2, open the application. Copy the following commands in order. If you're doing it from the command prompt , use "set" instead of "export".
- pacman -S --needed git base-devel mingw-w64-x86_64-toolchain
- source shell mingw64
- git clone https://github.com/microsoft/vcpkg.git
- cd vcpkg
- ./bootstrap-vcpkg.bat
- export VCPKG_DEFAULT_TRIPLET=x64-mingw-dynamic
- export VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-dynamic
- ./vcpkg install curl
You should now have the latest curl 8.4.0! :)

References: https://learn.microsoft.com/en-us/vcpkg/users/platforms/mingw
https://github.com/microsoft/vcpkg#quick-start-windows