Veterans who were injured while in service are exempt from paying the VA funding fee if they receive disability compensation or have a disability rating of 10% or higher. Surviving spouses of veterans who died in the line of duty also qualify for a funding fee exemption.
As of January 1, 2020, Purple Heart recipients also qualify to receive a VA funding fee exemption when obtaining a VA home loan.
Remember the VA has the last word on who is exempt, and some issues may be dealt with on a case-by-case basis. If you have any doubts, ask your local VA rep to review your service records (or your spouse's records) to get a determination from the VA.