It will be fine to use stdlib in newer version, current stdlib 1.18.2 has these critical vulnerabilities, e.g.:
CVE-2024-24790
CVE-2023-24540
CVE-2023-24538
CVE-2024-34158
CVE-2024-34156
CVE-2024-24791
CVE-2024-24784
CVE-2023-45288
CVE-2023-45287
...
It will be fine to use stdlib in newer version, current stdlib 1.18.2 has these critical vulnerabilities, e.g.: CVE-2024-24790 CVE-2023-24540 CVE-2023-24538 CVE-2024-34158 CVE-2024-34156 CVE-2024-24791 CVE-2024-24784 CVE-2023-45288 CVE-2023-45287 ...