An 18-year-old woman was attacked by a 20-year-old man with a machete this afternoon in an Apex neighborhood.