David Luiz's injury-time free kick inflicted upon Basel their first home defeat in this season's Europa League proper and handed Chelsea a slim semi-final lead after an assured display at St Jakob Park.
Victor Moses' first-half header put the Blues in front but Fabian Schar looked to have salvaged a share of the spoils for the hosts from the penalty spot.
Fuelled by the harsh decision to award a spot-kick for Cesar Azpilicueta's foul on Valentin Stocker, however, Chelsea rallied and Luiz's 20-yard effort slipped away from goalkeeper Yann Sommer.
Against a Basel team unchanged from their quarter-final second leg against Tottenham, John Terry partnered Branislav Ivanovic at the back for the Blues as David Luiz moved into midfield, while Ramires and Moses started ahead of Juan Mata and Oscar.
Basel have proved a force both domestically and in Europe on home turf this season and sought to immediately take the initiative, but despite their dominance of the early possession Chelsea looked a potent force on the counterattack.
Cesar Azpilicueta was a persistent threat from right-back and picked out a trademark Lampard run with a cross to the near post but Sommer was equal to the midfielder's first-time effort.
From the resulting corner, however, determined decoy work by Ivanovic allowed Moses to sneak into space unnoticed to nod home Lampard's centre.
Basel remained on the front foot but were largely restricted to shots from distance, with Schar forcing Petr Cech to tip his fiercely struck free-kick over the crossbar.
Chelsea continued to find space on the right-hand side and soon after Fernando Torres' shot was blocked, Sommer did well to claw away Ramires' half-volley.
Eden Hazard spurned the visitors' best opportunity of the half when Moses set him through on goal, but by that point Basel's control over proceedings had diminished.
Murat Yakin drew a brief response out of his team after the break and Stocker hit the post after a one-two with Marco Streller, but, once again, Chelsea effectively took the sting out of the game.
They, too, rattled the frame of the goal early in the second half when Hazard danced down the left and cut the ball back to Torres, who crashed a left-footed shot against the post.
Rafa Benitez was dealt one significant setback when Cole collected a booking for time-wasting that rules him out of the second leg, and his team was harshly punished by another refereeing decision before the final whistle.
With the Blues looking reasonably comfortable in defence, Stocker earned a spot kick under the challenge of Azpilicueta when it looked as if a cross from the right had evaded the Basel winger and Schar made no mistake.
Chelsea can take great credit, though, for the spirited response that saw them retake the lead with the last kick of the game.
Both Torres and Terry were denied from point-blank range before, in the 94th minute, Luiz's free-kick escaped Sommer's clutches and nestled in the bottom corner.