Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| beego | beego | before 2.3.6 | 2.3.6 | Patch available | CNA |
| — | github.com/beego/beego/v2 (Go) | before 2.3.6 | 2.3.6 | Patch available | GHSA-2j42-h78h-q4fg |
| — | github.com/beego/beego (Go) | up to 1.12.14 | — | No fix listed | GHSA-2j42-h78h-q4fg |
- beego Vendorbeego Affected before 2.3.6 Fixed in 2.3.6 Patch available CNA
- github.com/beego/beego/v2 (Go) Vendor— Affected before 2.3.6 Fixed in 2.3.6 Patch available GHSA-2j42-h78h-q4fg
- github.com/beego/beego (Go) Vendor— Affected up to 1.12.14 Fixed in — No fix listed GHSA-2j42-h78h-q4fg
Remediation
- Fix · CNA beego (beego) Fixed in 2.3.6
- Fix · GHSA-2j42-h78h-q4fg github.com/beego/beego/v2 (Go) Fixed in 2.3.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-30223
- 2026-10-03 Alias added: GHSA-2j42-h78h-q4fg
References
More Beego vulnerabilities
- TI-2022-13292 The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to… CVSS 3.1CRITICAL 9.8
- TI-2022-13707 The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with… CVSS 3.1CRITICAL 9.8
- TI-2021-10653 An issue was discovered in the route lookup process in beego before 1.12.11 that allows… CVSS 3.1CRITICAL 9.8
- TI-2024-26936 An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via… CVSS 3.1HIGH 8.8
- TI-2024-26937 An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via… CVSS 3.1HIGH 8.8
- TI-2024-36951 Beego Vulnerable to Collision Hazards of MD5 in Cache Key Filenames CVSS 4.0MEDIUM 6.9
Sources
- CVE-2025-30223 · CVE Program
- CVE-2025-30223 · NVD
- FIRST EPSS
- GHSA-2j42-h78h-q4fg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences