{"id":"DEBIAN-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-09-01T16:06:49.058867342Z","published":"2026-04-15T06:16:13.860Z","upstream":["CVE-2026-5160"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-5160"}],"affected":[{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Debian:12","purl":"pkg:deb/debian/golang-github-yuin-goldmark?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.4-1","1.5.5-1","1.5.6-1","1.6.0-1","1.7.0-1","1.7.1-1","1.7.13-1","1.7.4-1","1.8.2-1","1.8.2-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-5160.json"}},{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Debian:13","purl":"pkg:deb/debian/golang-github-yuin-goldmark?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.13-1","1.7.4-1","1.8.2-1","1.8.2-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-5160.json"}},{"package":{"name":"golang-github-yuin-goldmark","ecosystem":"Debian:14","purl":"pkg:deb/debian/golang-github-yuin-goldmark?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.2-1"}]}],"versions":["1.7.13-1","1.7.4-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-5160.json"}}],"schema_version":"1.9.0","severity":[{"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}