{"id":"CVE-2026-102941","aliases":["DEBIAN-CVE-2026-102941","DHI-4v2i-kx5w-ny5l-4xlr","GHSA-cv23-7vc5-jfh7","UBUNTU-CVE-2026-102941"],"summary":"gomarkdown/markdown IsSafeURL panics on short URLs","published_at":"2026-10-16T15:38:18.086Z","modified_at":"2026-11-16T02:34:15.211802Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00279000005684793,"percentile":0.20681999623775482,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to 0.0.0-20260724235538-61af6e1e6971, parser.IsSafeURL in parser/parser.go slices url[:nPath] before the len(url) >= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) < nPath and cap(url) < nPath. The one-byte destination / is an explicit non-panic counterexample because it matches the first valid path and returns before a longer prefix is sliced. Demonstrated panic cases include empty, ., and .. destinations under those conditions. The panic is reachable when markdown.ToHTML renders untrusted Markdown with html.Safelink enabled, including an empty link destination, and is also reachable by callers that pass a short attacker-controlled URL directly to the exported parser.IsSafeURL function. An uncaught panic can terminate the calling process and cause denial of service. This issue is fixed in 0.0.0-20260724235538-61af6e1e6971.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"gomarkdown/markdown","versions":["< 0.0.0-20260724235538-61af6e1e6971"],"provider":"cvelistv5","source":"CVE-2026-102941","relation":"self"},{"ecosystem":"Debian:12","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/debian/golang-github-gomarkdown-markdown?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20220731.dcdaee8-2","0.0~git20231115.a660076-1","0.0~git20260725.8435af3-1"],"provider":"osv","source":"DEBIAN-CVE-2026-102941","relation":"self"},{"ecosystem":"Debian:13","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/debian/golang-github-gomarkdown-markdown?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20231115.a660076-1","0.0~git20260725.8435af3-1"],"provider":"osv","source":"DEBIAN-CVE-2026-102941","relation":"self"},{"ecosystem":"Debian:14","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/debian/golang-github-gomarkdown-markdown?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20260725.8435af3-1"}]}],"versions":["0.0~git20231115.a660076-1"],"fixed":["0.0~git20260725.8435af3-1"],"provider":"osv","source":"DEBIAN-CVE-2026-102941","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.23","package":"snyk","purl":"pkg:apk/dhi/snyk","versions":["1.1305.2-r0","1.1306.0-r0","1.1306.1-r0","1.1306.2-r0","1.1306.3-r0","1.1306.4-r0","1.1306.4-r1","1.1307.0-r0","1.1307.1-r0","1.1307.2-r0","1.1307.3-r0","1.1307.4-r0","1.1308.0-r0","1.1308.1-r0","1.1308.2-r0","1.1308.3-r0","1.1308.4-r0"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28","purl":"pkg:apk/dhi/temporalio-server-1.28","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28-dev","purl":"pkg:apk/dhi/temporalio-server-1.28-dev","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28-fips","purl":"pkg:apk/dhi/temporalio-server-1.28-fips","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28-fips-dev","purl":"pkg:apk/dhi/temporalio-server-1.28-fips-dev","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29","purl":"pkg:apk/dhi/temporalio-server-1.29","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29-dev","purl":"pkg:apk/dhi/temporalio-server-1.29-dev","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29-fips","purl":"pkg:apk/dhi/temporalio-server-1.29-fips","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29-fips-dev","purl":"pkg:apk/dhi/temporalio-server-1.29-fips-dev","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"snyk","purl":"pkg:deb/dhi/snyk","versions":["1.1305.2-0","1.1306.0-0","1.1306.1-0","1.1306.2-0","1.1306.3-0","1.1306.4-0","1.1306.4-1","1.1307.0-0","1.1307.1-0","1.1307.2-0","1.1307.2-1","1.1307.3-0","1.1307.4-0","1.1308.0-0","1.1308.1-0","1.1308.2-0","1.1308.3-0","1.1308.4-0"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"snyk-fips","purl":"pkg:deb/dhi/snyk-fips","versions":["1.1307.2-1","1.1307.3-0","1.1307.4-0","1.1308.0-0","1.1308.1-0","1.1308.2-0","1.1308.3-0","1.1308.4-0"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Go","package":"github.com/gomarkdown/markdown","purl":"pkg:golang/github.com/gomarkdown/markdown","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260724235538-61af6e1e6971"}]}],"fixed":["0.0.0-20260724235538-61af6e1e6971"],"provider":"osv","source":"GHSA-cv23-7vc5-jfh7","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20220731.dcdaee8-2","0.0~git20231115.a660076-1"],"provider":"osv","source":"UBUNTU-CVE-2026-102941","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20231115.a660076-1"],"provider":"osv","source":"UBUNTU-CVE-2026-102941","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Ansible Automation Orchestrator 2026","cpe":"cpe:/a:redhat:ansible_automation_orchestrator:2026.8","status":"affected","packages":["ansible-automation-platform/automation-orchestrator-temporal-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Multicluster Global Hub","cpe":"cpe:/a:redhat:multicluster_globalhub","status":"affected","packages":["multicluster-globalhub/multicluster-globalhub-grafana-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-grafana-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["cri-o","openshift4/kube-metrics-server-rhel8","openshift4/kube-metrics-server-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","cpe":"cpe:/a:redhat:openshift:5","status":"not_affected","packages":["openshift5/kube-metrics-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-102941"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-102941","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-102941","license":"CC-BY-4.0","published_at":"2026-10-16T15:38:18.086Z","modified_at":"2026-10-26T17:37:11.962Z","summary":"gomarkdown/markdown IsSafeURL panics on short URLs","details":"The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to 0.0.0-20260724235538-61af6e1e6971, parser.IsSafeURL in parser/parser.go slices url[:nPath] before the len(url) >= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) < nPath and cap(url) < nPath. The one-byte destination / is an explicit non-panic counterexample because it matches the first valid path and returns before a longer prefix is sliced. Demonstrated panic cases include empty, ., and .. destinations under those conditions. The panic is reachable when markdown.ToHTML renders untrusted Markdown with html.Safelink enabled, including an empty link destination, and is also reachable by callers that pass a short attacker-controlled URL directly to the exported parser.IsSafeURL function. An uncaught panic can terminate the calling process and cause denial of service. This issue is fixed in 0.0.0-20260724235538-61af6e1e6971.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2026-102941"}],"affected":[{"ecosystem":"CVE","package":"gomarkdown/markdown","versions":["< 0.0.0-20260724235538-61af6e1e6971"],"provider":"cvelistv5","source":"CVE-2026-102941","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7"},{"type":"WEB","url":"https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-102941","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-102941","published_at":"2026-10-16T16:16:52.937Z","modified_at":"2026-10-27T09:47:36.501314Z","details":"The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to 0.0.0-20260724235538-61af6e1e6971, parser.IsSafeURL in parser/parser.go slices url[:nPath] before the len(url) >= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) < nPath and cap(url) < nPath. The one-byte destination / is an explicit non-panic counterexample because it matches the first valid path and returns before a longer prefix is sliced. Demonstrated panic cases include empty, ., and .. destinations under those conditions. The panic is reachable when markdown.ToHTML renders untrusted Markdown with html.Safelink enabled, including an empty link destination, and is also reachable by callers that pass a short attacker-controlled URL directly to the exported parser.IsSafeURL function. An uncaught panic can terminate the calling process and cause denial of service. This issue is fixed in 0.0.0-20260724235538-61af6e1e6971.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"DEBIAN-CVE-2026-102941"}],"affected":[{"ecosystem":"Debian:12","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/debian/golang-github-gomarkdown-markdown?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20220731.dcdaee8-2","0.0~git20231115.a660076-1","0.0~git20260725.8435af3-1"],"provider":"osv","source":"DEBIAN-CVE-2026-102941","relation":"self"},{"ecosystem":"Debian:13","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/debian/golang-github-gomarkdown-markdown?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20231115.a660076-1","0.0~git20260725.8435af3-1"],"provider":"osv","source":"DEBIAN-CVE-2026-102941","relation":"self"},{"ecosystem":"Debian:14","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/debian/golang-github-gomarkdown-markdown?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0~git20260725.8435af3-1"}]}],"versions":["0.0~git20231115.a660076-1"],"fixed":["0.0~git20260725.8435af3-1"],"provider":"osv","source":"DEBIAN-CVE-2026-102941","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-102941"}]},{"provider":"osv","source_id":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self","url":"https://osv.dev/vulnerability/DHI-4v2i-kx5w-ny5l-4xlr","license":"Apache-2.0","published_at":"2026-11-11T19:20:17Z","modified_at":"2026-11-16T02:34:15.211802Z","summary":"The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to…","details":"The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to 0.0.0-20260724235538-61af6e1e6971, parser.IsSafeURL in parser/parser.go slices url[:nPath] before the len(url) >= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) < nPath and cap(url) < nPath. The one-byte destination / is an explicit non-panic counterexample because it matches the first valid path and returns before a longer prefix is sliced. Demonstrated panic cases include empty, ., and .. destinations under those conditions. The panic is reachable when markdown.ToHTML renders untrusted Markdown with html.Safelink enabled, including an empty link destination, and is also reachable by callers that pass a short attacker-controlled URL directly to the exported parser.IsSafeURL function. An uncaught panic can terminate the calling process and cause denial of service. This issue is fixed in 0.0.0-20260724235538-61af6e1e6971.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"DHI-4v2i-kx5w-ny5l-4xlr"}],"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.23","package":"snyk","purl":"pkg:apk/dhi/snyk","versions":["1.1305.2-r0","1.1306.0-r0","1.1306.1-r0","1.1306.2-r0","1.1306.3-r0","1.1306.4-r0","1.1306.4-r1","1.1307.0-r0","1.1307.1-r0","1.1307.2-r0","1.1307.3-r0","1.1307.4-r0","1.1308.0-r0","1.1308.1-r0","1.1308.2-r0","1.1308.3-r0","1.1308.4-r0"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28","purl":"pkg:apk/dhi/temporalio-server-1.28","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28-dev","purl":"pkg:apk/dhi/temporalio-server-1.28-dev","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28-fips","purl":"pkg:apk/dhi/temporalio-server-1.28-fips","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.28-fips-dev","purl":"pkg:apk/dhi/temporalio-server-1.28-fips-dev","versions":["1.28.4-r0","1.28.4-r1","1.28.4-r10","1.28.4-r11","1.28.4-r12","1.28.4-r13","1.28.4-r14","1.28.4-r2","1.28.4-r3","1.28.4-r4","1.28.4-r5","1.28.4-r6","1.28.4-r7","1.28.4-r8","1.28.4-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29","purl":"pkg:apk/dhi/temporalio-server-1.29","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29-dev","purl":"pkg:apk/dhi/temporalio-server-1.29-dev","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29-fips","purl":"pkg:apk/dhi/temporalio-server-1.29-fips","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"temporalio-server-1.29-fips-dev","purl":"pkg:apk/dhi/temporalio-server-1.29-fips-dev","versions":["1.29.7-r0","1.29.7-r1","1.29.7-r10","1.29.7-r11","1.29.7-r12","1.29.7-r13","1.29.7-r14","1.29.7-r2","1.29.7-r3","1.29.7-r4","1.29.7-r5","1.29.7-r6","1.29.7-r7","1.29.7-r8","1.29.7-r9"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"snyk","purl":"pkg:deb/dhi/snyk","versions":["1.1305.2-0","1.1306.0-0","1.1306.1-0","1.1306.2-0","1.1306.3-0","1.1306.4-0","1.1306.4-1","1.1307.0-0","1.1307.1-0","1.1307.2-0","1.1307.2-1","1.1307.3-0","1.1307.4-0","1.1308.0-0","1.1308.1-0","1.1308.2-0","1.1308.3-0","1.1308.4-0"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"snyk-fips","purl":"pkg:deb/dhi/snyk-fips","versions":["1.1307.2-1","1.1307.3-0","1.1307.4-0","1.1308.0-0","1.1308.1-0","1.1308.2-0","1.1308.3-0","1.1308.4-0"],"provider":"osv","source":"DHI-4v2i-kx5w-ny5l-4xlr","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-4v2i-kx5w-ny5l-4xlr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102941"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-102941"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cv23-7vc5-jfh7"},{"type":"ADVISORY","url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7"},{"type":"FIX","url":"https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-102941"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-102941"}]},{"provider":"osv","source_id":"GHSA-cv23-7vc5-jfh7","relation":"self","url":"https://osv.dev/vulnerability/GHSA-cv23-7vc5-jfh7","license":"CC-BY-4.0","published_at":"2026-10-16T15:41:39Z","modified_at":"2026-10-16T16:00:45.389675Z","summary":"gomarkdown/markdown IsSafeURL panics on short URLs","details":"## Summary\n\nIsSafeURL slices url[:nPath] before checking that len(url) >= nPath, so a URL shorter than a path prefix (0, 1 or 2 bytes) triggers a slice-bounds panic, and this is reached end to end when the html.Safelink hardening flag is enabled and the input contains an empty or very short link destination, giving an unrecoverable crash DoS. Confirmed at HEAD (e08cff8; present since 2022).\n\n## The defect\n\nparser/parser.go, IsSafeURL:\n\n```go\nfunc IsSafeURL(url []byte) bool {\n    nLink := len(url)\n    for _, path := range validPaths {          // \"/\", \"./\", \"../\"\n        nPath := len(path)\n        linkPrefix := url[:nPath]               // line 789: sliced BEFORE the length guard\n        if nLink >= nPath && bytes.Equal(linkPrefix, path) {   // line 790: guard is too late\n            ...\n```\n\nurl[:nPath] is evaluated before the `nLink >= nPath` check. When len(url) < nPath and cap(url) < nPath, the slice expression panics. Only the relative-path loop is affected; the adjacent URIs loop is already correctly guarded (the signal that this one deviates, the same signal as the anchor). Input: IsSafeURL(\"\") panics ([:1] cap 0), IsSafeURL(\".\") panics ([:2] cap 1), IsSafeURL(\"..\") panics ([:3] cap 2), while IsSafeURL(\"/\") returns true. End to end: `markdown.ToHTML(input, html.CommonFlags|html.Safelink)` with input `[x]()` panics. Attacker model: (1) any service rendering untrusted Markdown with the html.Safelink flag (the URL-sanitizing hardening flag itself introduces the crash); or (2) any downstream that calls the exported parser.IsSafeURL on a 0/1/2-byte attacker URL, no flag required. No recover() anywhere, so an uncaught crash of the calling goroutine.\n\n## Verification\n\nEXECUTED with negative controls. Direct: the empty/1/2-char cases panic with the exact slice-bounds message while \"/\" returns true. End to end via ToHTML with html.CommonFlags|html.Safelink: `[x]()` panics, while `[x](/)`, `[x](http://example.com)`, plain text, and `[x](javascript:alert(1))` (safely dropped) do not. NOT verified: how many downstream apps enable Safelink or call IsSafeURL directly (the default no-Safelink render path does not reach it).\n\n## Suggested fix\n\nMove the slice inside the guard: check `nLink >= nPath` first, then compute url[:nPath] (or use bytes.HasPrefix(url, path), which is length-safe). One-line change, mirroring the already-correct URIs loop.\n\nAlso checked and sound: CVE-2026-40890 (smartypants smartLeftAngle OOB) is fixed; CVE-2024-44337 (list/paragraph infinite loop) is fixed (deep nesting capped at maxNesting=64); default XSS is by design (Safelink/SkipHTML not in CommonFlags).\n\n## Tooling\n\nAI assistance was used while investigating. The panic is executed-verified with negative controls (IsSafeURL on empty/./.. panics with a slice-bounds error while \"/\" returns true; ToHTML with html.Safelink on `[x]()` panics while valid and javascript: links do not), and I confirmed at HEAD that IsSafeURL computes url[:nPath] before the `nLink >= nPath` guard.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-cv23-7vc5-jfh7"}],"affected":[{"ecosystem":"Go","package":"github.com/gomarkdown/markdown","purl":"pkg:golang/github.com/gomarkdown/markdown","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260724235538-61af6e1e6971"}]}],"fixed":["0.0.0-20260724235538-61af6e1e6971"],"provider":"osv","source":"GHSA-cv23-7vc5-jfh7","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7"},{"type":"WEB","url":"https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9"},{"type":"PACKAGE","url":"https://github.com/gomarkdown/markdown"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-102941","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-102941","license":"CC-BY-SA-4.0","published_at":"2026-10-16T16:16:00Z","modified_at":"2026-10-28T20:15:21.951576Z","details":"The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to 0.0.0-20260724235538-61af6e1e6971, parser.IsSafeURL in parser/parser.go slices url[:nPath] before the len(url) >= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) < nPath and cap(url) < nPath. The one-byte destination / is an explicit non-panic counterexample because it matches the first valid path and returns before a longer prefix is sliced. Demonstrated panic cases include empty, ., and .. destinations under those conditions. The panic is reachable when markdown.ToHTML renders untrusted Markdown with html.Safelink enabled, including an empty link destination, and is also reachable by callers that pass a short attacker-controlled URL directly to the exported parser.IsSafeURL function. An uncaught panic can terminate the calling process and cause denial of service. This issue is fixed in 0.0.0-20260724235538-61af6e1e6971.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"UBUNTU-CVE-2026-102941"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-102941"}],"affected":[{"ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20220731.dcdaee8-2","0.0~git20231115.a660076-1"],"provider":"osv","source":"UBUNTU-CVE-2026-102941","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-gomarkdown-markdown","purl":"pkg:deb/ubuntu/golang-github-gomarkdown-markdown?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20231115.a660076-1"],"provider":"osv","source":"UBUNTU-CVE-2026-102941","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-102941"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-102941"},{"type":"REPORT","url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7"}]},{"provider":"redhat-vex","source_id":"CVE-2026-102941","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-102941","license":"CC-BY-4.0","published_at":"2026-10-16T15:38:18.086Z","modified_at":"2026-10-20T20:28:58Z","summary":"github.com/gomarkdown/markdown: github.com/gomarkdown/markdown: Denial of Service via short URL parsing","details":"A flaw was found in github.com/gomarkdown/markdown. A remote attacker can cause a Denial of Service (DoS) by submitting specially crafted Markdown content containing empty or very short link destinations. When link sanitization is enabled, the parser attempts to read beyond the boundaries of the input string without verifying its length. This issue triggers an unhandled crash, terminating the running process.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2026-102941"},{"type":"Red Hat","score":"Important","source":"CVE-2026-102941"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Ansible Automation Orchestrator 2026","cpe":"cpe:/a:redhat:ansible_automation_orchestrator:2026.8","status":"affected","packages":["ansible-automation-platform/automation-orchestrator-temporal-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Multicluster Global Hub","cpe":"cpe:/a:redhat:multicluster_globalhub","status":"affected","packages":["multicluster-globalhub/multicluster-globalhub-grafana-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/acm-grafana-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["cri-o","openshift4/kube-metrics-server-rhel8","openshift4/kube-metrics-server-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-102941"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 5","cpe":"cpe:/a:redhat:openshift:5","status":"not_affected","packages":["openshift5/kube-metrics-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-102941"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102941.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-102941"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2554173"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-102941"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102941"},{"type":"WEB","url":"https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9"},{"type":"WEB","url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7"}]}],"references":[{"type":"WEB","url":"https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7"},{"type":"WEB","url":"https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-102941"},{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-4v2i-kx5w-ny5l-4xlr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102941"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cv23-7vc5-jfh7"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-102941"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-102941"},{"type":"PACKAGE","url":"https://github.com/gomarkdown/markdown"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-102941"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102941.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-102941"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2554173"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-102941","url":"https://www.cve.org/CVERecord?id=CVE-2026-102941","license":"CC-BY-4.0","modified_at":"2026-10-26T17:37:11.962Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-102941","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-102941","modified_at":"2026-10-27T09:47:36.501314Z","relation":"self"},{"provider":"osv","source_id":"DHI-4v2i-kx5w-ny5l-4xlr","url":"https://osv.dev/vulnerability/DHI-4v2i-kx5w-ny5l-4xlr","license":"Apache-2.0","modified_at":"2026-11-16T02:34:15.211802Z","relation":"self"},{"provider":"osv","source_id":"GHSA-cv23-7vc5-jfh7","url":"https://osv.dev/vulnerability/GHSA-cv23-7vc5-jfh7","license":"CC-BY-4.0","modified_at":"2026-10-16T16:00:45.389675Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-102941","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-102941","license":"CC-BY-SA-4.0","modified_at":"2026-10-28T20:15:21.951576Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-102941","url":"https://access.redhat.com/security/cve/CVE-2026-102941","license":"CC-BY-4.0","modified_at":"2026-10-20T20:28:58Z","relation":"self"}]}
