Symlink Attack Affecting std/os package, versions <1.25.12>=1.26.0-0 <1.26.5>=1.27.0-0 <1.27.0-rc.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDOS-17905377
  • published9 Jul 2026
  • disclosed7 Jul 2026
  • creditMundur

Introduced: 7 Jul 2026

CVE-2026-39822  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade std/os to version 1.25.12, 1.26.5, 1.27.0-rc.2 or higher.

Overview

std/os is a Go standard library package std/os

Affected versions of this package are vulnerable to Symlink Attack.

Go Vulnerability Report:
On Unix systems, opening a file in an os.Root improperly follows symlinks to locations outside of the Root when the final path component of the a path is a symbolic link and the path ends in /.For example, 'root.Open("symlink/")' will open "symlink" even when "symlink" is a symbolic link pointing outside of the root.

CVSS Base Scores

version 4.0
version 3.1