Coffee doesn’t get spoiled. However, rancid, mildewy, or moldy smell from coffee often means that the coffee has lost its quality and should be thrown out.