{"id":"UBUNTU-CVE-2026-5160","details":"Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are vulnerable to Cross-site Scripting (XSS) due to improper ordering of URL validation and normalization. The renderer validates link destinations using a prefix-based check (IsDangerousURL) before resolving HTML entities. This allows an attacker to bypass protocol filtering by encoding dangerous schemes using HTML5 named character references. For example, a payload such as javascript&colon;alert(1) is not recognized as dangerous during validation, leading to arbitrary script execution in the context of applications that render the URL.","modified":"2026-05-20T16:13:37.892659206Z","published":"2026-04-15T06:16:00Z","upstream":["CVE-2026-5160"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-5160"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-5160"}],"affected":[{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.12-1","1.1.12-2","1.1.18-1","1.1.21-1","1.1.23-1","1.1.25-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-yuin-goldmark-dev","binary_version":"1.1.25-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"}},{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.2-1","1.4.2-1","1.4.3-1","1.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.4-1","binary_name":"golang-github-yuin-goldmark-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"}},{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.4-1","1.5.6-1","1.6.0-1","1.7.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.0-1","binary_name":"golang-github-yuin-goldmark-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"}},{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.4-1","binary_name":"golang-github-yuin-goldmark-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"}},{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4-1","1.7.13-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-yuin-goldmark-dev","binary_version":"1.7.13-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5160.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"},{"type":"Ubuntu","score":"medium"}]}