CVE-2025-30223Beego
Critical 9.6 No auth needed
Follow: this CVE · Beego · Beego We alert you by email or Slack (account required).
- Priority
- 73
- CVSS 3.1
- 9.6
- EPSS
- —
- Auth required
- No
- Published
- Mar 31, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Beego.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/beego/beego |
≤ 1.12.14 |
no fixed version | — |
| Go | github.com/beego/beego |
all |
no fixed version | — |
| Go | github.com/beego/beego/v2 |
< 2.3.6 |
2.3.6 |
go get github.com/beego/beego/v2@v2.3.6 |
| Go | github.com/beego/beego/v2 |
< 2.3.6 |
2.3.6 |
go get github.com/beego/beego/v2@v2.3.6 |
Per OSV / GitHub Advisories (GHSA-2j42-h78h-q4fg, GO-2025-3585). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| beego | beego | < 2.3.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory