diff --git a/SPECS/gh/CVE-2026-5160.patch b/SPECS/gh/CVE-2026-5160.patch new file mode 100644 index 00000000000..d2a15166309 --- /dev/null +++ b/SPECS/gh/CVE-2026-5160.patch @@ -0,0 +1,60 @@ +From d4695cce7a4de71d63de06829674fffb6551142c Mon Sep 17 00:00:00 2001 +From: yuin +Date: Thu, 19 Mar 2026 15:21:23 +0900 +Subject: [PATCH] fix: prevent XSS by escaping dangerous URLs in links and + images + +Signed-off-by: Azure Linux Security Servicing Account +Upstream-reference: https://github.com/yuin/goldmark/commit/cb46bbc4eca29d55aa9721e04ad207c23ccc44f9.patch +--- + .../yuin/goldmark/renderer/html/html.go | 16 ++++++++++------ + 1 file changed, 10 insertions(+), 6 deletions(-) + +diff --git a/vendor/github.com/yuin/goldmark/renderer/html/html.go b/vendor/github.com/yuin/goldmark/renderer/html/html.go +index 7bf2ab8..616b005 100644 +--- a/vendor/github.com/yuin/goldmark/renderer/html/html.go ++++ b/vendor/github.com/yuin/goldmark/renderer/html/html.go +@@ -479,12 +479,14 @@ func (r *Renderer) renderAutoLink(w util.BufWriter, source []byte, node ast.Node + return ast.WalkContinue, nil + } + _, _ = w.WriteString(`