Stimuli-responsive porous polymer materials have promising biomedical application due to their ability to trap and release biomacromolecules. In this work, a class of highly porous electrospun fibers is designed using polylactide as the polymer matrix and poly(ethylene oxide) as a porogen. Carbon nanotubes (CNTs) with different concentrations are further impregnated onto the fibers to achieve self-sealing functionality induced by photothermal conversion upon light irradiation. The fibers with 0.4 mg mL(-1) of CNTs exhibit the optimum encapsulation efficiency of model biomacromolecules such as dextran, bovine serum albumin, and nucleic acids, although their photothermal conversion ability is slightly lower than the fibers with 0.8 mg mL(-1) of CNTs. Interestingly, reversible reopening of the surface pores is accomplished with the degradation of PLA, affording a further possibility for sustained release of biomacromolecules after encapsulation. Effects of CNT loading on fiber morphology, structure, thermal/mechanical properties, degradation, and cell viability are also investigated. This novel class of porous electrospun fibers with self-sealing capability has great potential to serve as an enabling strategy for trapping/release of biomacromolecules with promising applications in, for example, preventing inflammatory diseases by scavenging cytokines from interstitial body fluids.