This is a general travel warning given by US State Department. (under Level 04 Category). Although US travel advisory re SL issued due to COVID situation, the threat on terrorism also included by default.The similar travel warning have been issued to many countries that include INDIA, PAKISTAN, BANGLADESH, MALDIVES etc.
SRI LANKA
INDIA
PAKISTAN
BANGLADESH
MALDIVES