Treatment depends on severity:
It is common for holes to close on their own, but many may need surgery or a catheter-based procedure to close the hold. Symptoms can be treated with blood pressure medicines or diuretics.
Surgery: Percutaneous VSD closure
Medications: Diuretic and ACE inhibitor
https://www.cdc.gov/ncbddd/heartdefects/ventricularseptaldefect.html