Remove the stems from the dried chiles. Shake out some seeds if you want to reduce the heat.
Heat a dry skillet over medium-low heat. Toast the chiles for a few seconds on each side until fragrant. Do not let them burn.
Place the toasted chiles and garlic in a saucepan. Cover with water and simmer for 5–7 minutes until softened.
Transfer the chiles and garlic to a blender. Add onion, vinegar, salt, and about ½ cup cooking liquid.
Blend until smooth, adding a little more water if needed to reach your preferred consistency.
Blend in the optional vegetable oil. Taste and adjust the salt or vinegar.
Let the salsa cool and serve with your favorite Mexican dishes.