Reminder: clean the coffee grinder regularly!
Coffee tasted bad, with a strong rancid note. I decided to clean the grinder, removed the burr, and used canned air to eliminate all tiny particles, also removed some coffee oil. After brewing a fresh coffee, the difference was amazing! The rancid taste was gone, and the rich, fresh flavour of coffee was back.