Foreign exchange settlement risk is the risk that one party to a currency trade pays away the currency it sold but never receives the currency it bought. It is better known as Herstatt risk, after the German bank whose closure in 1974 made it famous, and the main entry covers its history and mechanics in more detail.
The risk arises because the two legs of a trade settle in different payment systems, often in different time zones. A bank paying yen in Tokyo may wait hours before the dollars it is owed arrive in New York, and if the counterparty fails in between, the full amount can be lost, not just a price difference. That makes it a form of principal risk and a special case of wider settlement risk. Central banks and payment system bodies also call it cross-currency settlement risk, to stress that the two legs of the trade settle in two different currencies.
The main remedy is payment versus payment, in which each leg is paid only if the other is paid too. Since 2002 CLS has provided this for the most traded currencies. Trades settled outside CLS are often reduced by bilateral netting, but some exposure remains.