I have a big box of (uncrushed) malts in my basement; many of which are probably around a year old by now. They do have a best-by date, and I'm not sure what impact their age may have, but I also won't worry about it too much.
Unopened bags of hops usually keep well imho, preferably in the freezer, though. Most online shops carry hops from the 2020 or even 2019 harvest, so a few more months of storage aren't going to have a huge impact - given the right conditions, of course.