Is it making any noise yet? Like a clunking when going over bumps? It is a safety hazard, as water could get in and separate the joint then the wheel would fall off. But if it's not clunking yet, you have a bit of time I think. Definitely get fixed before winter/first snow.
As for cost, luckily...