A cavity does not go away. A cavity does not heal on its own either. There is no way to treat a cavity with medication. However, if caught early enough, it can be reversed by maintaining good oral hygiene. The only other option is to have a silver filling done by a dentist.