poppy seeds have oil, and anything oily can go rancid.
in your fridge or freezer, they could be fine for years. however, stored in a warm place, for example near your stove, in a warm kitchen in the summer, etc., they could concievably go bad within a few months. the same with cookng oil...