Cosmetics are very complex products (lots of different substances) and it is quite hard to really understand if one product is 100% vegan or not.
This article touches the surface of some non-vegan substances that are used for cosmetics:
Lanolin as emollient
Shellac in nail or hair products
Glycerine is used for a broad range of products that include soaps, ...