SchedMD Slurm 21.08.* before 21.08.4 has Incorrect Access Control. On sites using the new AccountingStoreFlags=job_script and/or job_env options, the access control rules in SlurmDBD may permit users to request job scripts and environment files to which they should not have access.
https://www.schedmd.com/news.php?id=256
https://www.schedmd.com/news.php
https://lists.schedmd.com/pipermail/slurm-announce/2021/000068.html