The motion of Taylor bubbles in capillaries is typical of many engineering and biological systems, ranging from subsurface flows to small-scale reactors. Although the hydrodynamics of elongated bubbles has been the object of several studies, the case where a solute is transported in the surrounding liquid and surface mass-transfer mechanisms act on the solid wall or the bubble–fluid interface is much less understood. To fill this gap, we investigate the transport problem around a confined Taylor bubble to access the competition between advection, diffusion and surface mass transfer in the different regions of the bubble. With this aim, we derive a one-dimensional advection–diffusion–mass-transfer equation where the transport mechanisms are described through an effective velocity, an effective diffusion coefficient and an effective Sherwood number. Our model generalises the Aris–Taylor dispersion to the case of a Taylor bubble and clarifies the impact of surface mass transfer in the advection and diffusion dominated regimes for both the front and rear menisci. The model recovers the typical Pèclet square relationship of the effective diffusion coefficient, which also depends on the film thickness. Also, when the Pèclet number balances with the Sherwood number, there exist conditions that lead to the formation of hot spots of concentration. We show that the typical shape oscillations of the bubble rear locally enhance superficial mass transfer. Finally, we study the transport problem in the uniform film region where the concentration field can be found analytically.