Yes. You are right, on the mean time I have found a list from the WHO. In some countries it is mandatory even if you have only been on transit in a country in which yellow fever is endemic. For example if one is on transit in Brazil (Sao Paolo, Rio…) you might be denied entry to several Caribbean countries.
Ivi