Despite leading 19-0 until the final minute of the opening half, the Wizards struggled to overcome a spririted Llanharan outfit, who were fit and played withgreat heart.
Early tries by wing Richard Carter and centre David Hawkins were followed by a second from Hawkins with two converted by Jamie Davies.
Llanharan got on the board with an injury-time penalty by Wayne Jervis, but within five minutes of the restart, Carter went over again for Davies to convert.
Llanharan replied with a try by hooker Alan Williams and Jervis kicked a penalty, though Davies added a further Aberavon score with a penalty shot.
Aberavon were rocked again when flanker Ceri Jones went over for a last-minute try that Jervis converted from the touchline.
In Division One, leaders Maesteg won a local derby by 37-15 against Bridgend Athletic and scored five tries through wing Alun Brown (2), centre Paul Morgan, veteran scrum half Kevin Ellis and fly half Mark David.
David converted three and placed two penalty goals, but the Athletic responded with tries by Gavin Pound and Andy Tollentino and skipper Stuart Morris placed a conversion and penalty.
Roger Lewis talks to WRU TV at the announcement of a new £60 million Rugby Services Agreement (RSA) which provides a new and positive contractual relationship between the WRU and its four Regions for the next six years has been agreed.
The Welsh Rugby Union has announced a major new sponsorship deal with Gullivers Sports Travel which will make the UK's leading, and longest established, multi-sport tour operator, an Official Supplier for the rest of the decade.
Having taken part in seven World Cups as a player and coach, Liza Burgess hopes to go out in style this afternoon when Wales take on Australia in the Play-off for seventh and eighth place in the Women's Rugby World Cup in Paris.
WRU Head of Rugby Josh Lewsey met with volunteers across the game earlier this week, championing their role in the sport. He was joined by Wales captain Sam Warburton for part of the day as volunteers took part in a 'Try Out' event for the 2015 Rugby World Cup
Wales Women may not have got the results they wanted recently on the field, but off it they have made massive strides in strength and conditioning - and that is in no small part due to S&C coach Sam Dodge.
Two weeks into the new pitch project at Millennium Stadium, Groundman Craig Campbell takes staff on a unique behind-the-scene tour of the works so far and National Squad Assistant Strength and Conditioning Coach John Ashby and Tour Guide Peter Owen describe what the revamp means for them.
Try-scorer Jenny Davies and fellow prop Megan York reveal to WRU TV's Graeme Gillespie their thoughts after Wales broke their drought in the Women's Rugby World Cup with a 35-3 win over South Africa in Paris.