The former West Ham player underwent chemotherapy after a malignant tumour was discovered in July.
Haller’s introduction as a 62nd-minute substitute for Youssoufa Moukoko was met with rapturous reception at Signal Iduna Park.
The win takes Napoli 12 points clear of second-placed AC Milan.
The Liverpool boss started his career with Mainz in the German second division.