The WSJT-X User Guide states, “WSJT-X includes a built-in cty.dat file containing DXCC prefix information. Updated files can be downloaded from the Amateur Radio Country Files website when required. If an updated cty.dat is present in the logs folder and readable, it will be used in preference to the built-in one.”

Starting with Version 2.7, you can update the country file from within the program. In Settings, click on the Colors tab and you’ll find the information at the bottom of the window.

To manually update to the latest country database, from the WSJT-X menu, click File | Open log directory.  Download CTY.DAT, then drag the file into that folder.