Vulnerabilities · 2025 · Beego
CVE-2025-30223
Beego vulnerability
Beego is an open-source web framework for the Go programming language. Prior to 2.3.6, a Cross-Site Scripting (XSS) vulnerability exists in Beego's RenderForm() function due to improper HTML escaping of user-controlled data. This vulnerability allows attackers to inject malicious JavaScript code that executes in victims' browsers, potentially leading to session hijacking, credential theft, or account takeover. The vulnerability affects any application using Beego's RenderForm() function with user-provided data. Since it is a high-level function generating an entire form markup, many developers would assume it automatically escapes attributes (the way most frameworks do). This vulnerability is fixed in 2.3.6.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Beego. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Beego runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg · Exploit
- github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-30223
- pkg.go.dev/vuln/GO-2025-3585
- github.com/advisories/GHSA-2j42-h78h-q4fg
- nvd.nist.gov/vuln/detail/CVE-2025-30223
- cve.org/CVERecord?id=CVE-2025-30223
More vulnerabilities in Beego products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.