CVE-2025-30223
CRITICAL 9.6CVSS 3.1Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input
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.
- Published
- 31 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-2j42-h78h-q4fgGO-2025-3585
- Sources
- NVDJSONOSV GHSA-2j42-h78h-q4fgJSONOSV GO-2025-3585JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | beego | beegocpe:2.3:a:beego:beego:*:*:*:*:*:*:*:* |
< 2.3.6 | 2.3.6 |
| OSV | Go | github.com/beego/beego/v2 | < 2.3.6 | 2.3.6 |
| OSV | Go | github.com/beego/beego | <= 1.12.14 | |
| OSV | Go | github.com/beego/beego | all versions |
References
- https://github.com/beego/beego/commit/939bb18c66406466715ddadd25dd9ffa6f169e25 · Patch, WEB, FIX
- https://github.com/beego/beego/security/advisories/GHSA-2j42-h78h-q4fg · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-30223 · ADVISORY
- https://github.com/beego/beego · PACKAGE
- https://pkg.go.dev/vuln/GO-2025-3585 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 31 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Apr 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 Mar 2025)