Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-27142: Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0. CVE-2026-27139: On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by lstat from arbitrary locations on the filesystem without permitting reading or writing files outside the root. CVE-2026-25679: url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.
Fixed packages 7
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | golang | 0:1.25.8-1.amzn2.0.1 |
| Amazon Linux · 2 | golang-bin | 0:1.25.8-1.amzn2.0.1 |
| Amazon Linux · 2 | golang-docs | 0:1.25.8-1.amzn2.0.1 |
| Amazon Linux · 2 | golang-misc | 0:1.25.8-1.amzn2.0.1 |
| Amazon Linux · 2 | golang-shared | 0:1.25.8-1.amzn2.0.1 |
| Amazon Linux · 2 | golang-src | 0:1.25.8-1.amzn2.0.1 |
| Amazon Linux · 2 | golang-tests | 0:1.25.8-1.amzn2.0.1 |
Vulnerabilities 3
-
High 7.5
Incorrect parsing of IPv6 host literals in net/url
url.Parse insufficiently validated the host/authority component and accepted some invalid URLs.
-
Medium 6.1
URLs in meta content attribute actions are not escaped in html/template
Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be …
-
Low 2.5
FileInfo can escape from a Root in os
On Unix platforms, when listing the contents of a directory using File.ReadDir or File.Readdir the returned FileInfo could reference a file outside of the Root in which the File was opened. The impact of this escape is limited to reading metadata provided by …