Where does Android store the snapshots used on the recent apps? iOS takes a screenshot of an app every time it is sent to the background (maybe to show as a thumbnail when viewing recent apps. Details are available on this Stack Overflow question).

I did a little research and came to understand that the same feature is used by Android also. This Stack Overflow question deals with it.

This is a security issue if these snapshots are being stored somewhere in the device and are accessible to other apps.

I wanted to test this feature for my app, but I have no idea where Android stores these snapshots. I did some Googling but found nothing about the storage location.

Where are these snapshots located? Is this accessible to users other than root?
If what are you asking for is the location of the thumbnails displayed by Android when switching apps, then (on my LineageOS 13) they are stored inside /data/system/recent_images as PNG files called x_task_thumbnail.png (x being a possibly random number).

Since the thumbnails are owned by user system and group system, and their octal permissions are 600, you do need root to access them in whatsoever way.