Yes, clearly, this is due to luminosity variations between all your images. If you try to ‘normalize’ them a little bit, before applying the median blending, then it works quite well:
$ gmic *.jpeg balance_gamma , blend_median o output.jpg