I’d expect a replacement. Putting the freshness issue aside, this is a food product, and as such, it’s a reasonable expectation that the product should arrive to you sealed.
Going back to the freshness issue, I think you, along with most of the folks who drink coffee, would say that keeping your beans in a sealed container isn’t out of the ordinary. And I bet that they sell coffee beans in sealed bags as a matter of course. Again, that supports an expectation that the coffee you purchased should arrive in a sealed bag.
I’d ask them directly for a replacement, giving them the benefit of the doubt that they just hit “send” too quickly because of the busy holiday season. If they refuse a direct request, then you can make a decision as to whether they deserve your business going forward.