For reference, here is the list that was provided on this forum:
What wood to use?
And another forum that says it's safe as well,
using tree wood and grass on a hamsters cage - Supplies & Accessories - Hamster Hideout Forum
It's because oak is hardwood I think, not a softwood? But I'm not totally sure on the reasoning behind it.