NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-52796: Gogs has DoS in rendering issue index pattern

lowCVSS 3.1 3.5GHSA-4j89-2c4f-44c6

Summary Special template of issue index pattern may cause panic. Details in internal/markup/markup.go Issue index pattern is rendered to link with com.Expand. However, com.Expand is not safe. when { is found but } not found, i comes to 1, template[:-1] will be called, and then panicked finally, all pages than contains issue index are unavailable. PoC 1. set issue index pattern as follow 2.

Published Jun 22, 2026 · Updated Jul 21, 2026

Affected packages

gogs.io/gogs

Ecosystem
Go
Affected
<= 0.14.2
Fixed in
0.14.3
Check
go list -m gogs.io/gogs

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

Special template of issue index pattern may cause panic.

Details

in internal/markup/markup.go

link = fmt.Sprintf(`%s`, com.Expand(metas["format"], metas), m)

Issue index pattern is rendered to link with com.Expand.

However, com.Expand is not safe.

i = strings.Index(template, "}")
if s, ok := match[template[:i]]; ok {

when { is found but } not found, i comes to 1, template[:-1] will be called, and then panicked

image

finally, all pages than contains issue index are unavailable.

PoC

  1. set issue index pattern as follow

image

  1. add a commit which point to an issue in its msg

image

using #1 above

Impact

DoS that cause part of pages of the specify repo unavailable.

Credited to BaiMeow.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries